#    Copyright 2012 Tri-County Electric Cooperative, St. Matthews, South Carolina
#    This file is part of COOPGIS.
#    COOPGIS is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    COOPGIS is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with COOPGIS.  If not, see <http://www.gnu.org/licenses/>.

import os, csv, shutil, datetime, time, reportlab
from django.contrib.gis.db import models
from django.http import HttpResponse
from django.contrib import admin


#2011Calhounwater had 98 rows.
class a2011Calhounwater(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    statefp = models.CharField(max_length=2, blank=True)
    countyfp = models.CharField(max_length=3, blank=True)
    ansicode = models.CharField(max_length=8, blank=True)
    hydroid = models.TextField(blank=True)
    fullname = models.CharField(max_length=100, blank=True)
    mtfcc = models.CharField(max_length=5, blank=True)
    aland = models.FloatField(null=True, blank=True)
    awater = models.FloatField(null=True, blank=True)
    intptlat = models.CharField(max_length=11, blank=True)
    intptlon = models.CharField(max_length=12, blank=True)
    the_geom = models.MultiPolygonField(srid=-1, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'2011calhounwater'
        app_label='djangoproject'

#AuthGroup had 29 rows.
class AuthGroup(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=80, unique=True)
    class Meta:
        db_table = u'auth_group'
        app_label='djangoproject'

#AuthGroupPermissions had 12 rows.
class AuthGroupPermissions(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    group = models.ForeignKey('AuthGroup', related_name="AuthGroupPermissions_group")
    permission = models.ForeignKey('AuthPermission', related_name="AuthGroupPermissions_permission")
    class Meta:
        db_table = u'auth_group_permissions'
        app_label='djangoproject'

#AuthPermission had 393 rows.
class AuthPermission(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=200)
    content_type = models.ForeignKey('DjangoContentType', related_name="AuthPermission_content_type")
    codename = models.CharField(max_length=200)
    class Meta:
        db_table = u'auth_permission'
        app_label='djangoproject'

#AuthUser had 35 rows.
class AuthUser(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    username = models.CharField(max_length=30, unique=True)
    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
    email = models.CharField(max_length=75)
    password = models.CharField(max_length=128)
    is_staff = models.BooleanField()
    is_active = models.BooleanField()
    is_superuser = models.BooleanField()
    last_login = models.DateTimeField()
    date_joined = models.DateTimeField()
    class Meta:
        db_table = u'auth_user'
        app_label='djangoproject'

#AuthUserGroups had 218 rows.
class AuthUserGroups(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    user = models.ForeignKey('AuthUser', related_name="AuthUserGroups_user")
    group = models.ForeignKey('AuthGroup', related_name="AuthUserGroups_group")
    class Meta:
        db_table = u'auth_user_groups'
        app_label='djangoproject'

#AuthUserUserPermissions had 5 rows.
class AuthUserUserPermissions(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    user = models.ForeignKey('AuthUser', related_name="AuthUserUserPermissions_user")
    permission = models.ForeignKey('AuthPermission', related_name="AuthUserUserPermissions_permission")
    class Meta:
        db_table = u'auth_user_user_permissions'
        app_label='djangoproject'

#Censusedge2013 had 50547 rows.
class Censusedge2013(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    statefp = models.CharField(max_length=2, blank=True)
    countyfp = models.CharField(max_length=3, blank=True)
    tlid = models.TextField(blank=True)
    tfidl = models.TextField(blank=True)
    tfidr = models.TextField(blank=True)
    mtfcc = models.CharField(max_length=5, blank=True)
    fullname = models.CharField(max_length=100, blank=True)
    smid = models.CharField(max_length=22, blank=True)
    lfromadd = models.CharField(max_length=12, blank=True)
    ltoadd = models.CharField(max_length=12, blank=True)
    rfromadd = models.CharField(max_length=12, blank=True)
    rtoadd = models.CharField(max_length=12, blank=True)
    zipl = models.CharField(max_length=5, blank=True)
    zipr = models.CharField(max_length=5, blank=True)
    featcat = models.CharField(max_length=1, blank=True)
    hydroflg = models.CharField(max_length=1, blank=True)
    railflg = models.CharField(max_length=1, blank=True)
    roadflg = models.CharField(max_length=1, blank=True)
    olfflg = models.CharField(max_length=1, blank=True)
    passflg = models.CharField(max_length=1, blank=True)
    divroad = models.CharField(max_length=1, blank=True)
    exttyp = models.CharField(max_length=1, blank=True)
    ttyp = models.CharField(max_length=1, blank=True)
    deckedroad = models.CharField(max_length=1, blank=True)
    artpath = models.CharField(max_length=1, blank=True)
    persist = models.CharField(max_length=1, blank=True)
    gcseflg = models.CharField(max_length=1, blank=True)
    offsetl = models.CharField(max_length=1, blank=True)
    offsetr = models.CharField(max_length=1, blank=True)
    tnidf = models.TextField(blank=True)
    tnidt = models.TextField(blank=True)
    the_geom = models.MultiLineStringField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'censusedge2013'
        app_label='djangoproject'

#Censussubdivide had 299 rows.
class Censussubdivide(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    geo_id = models.CharField(max_length=60, blank=True)
    state = models.CharField(max_length=2, blank=True)
    county = models.CharField(max_length=3, blank=True)
    cousub = models.CharField(max_length=5, blank=True)
    name = models.CharField(max_length=90, blank=True)
    lsad = models.CharField(max_length=7, blank=True)
    censusarea = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    the_geom = models.MultiPolygonField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'censussubdivide'
        app_label='djangoproject'

#Coopamrgisphaseupdatelog had 1275 rows.
class Coopamrgisphaseupdatelog(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    originatingmeterdcsinumber = models.IntegerField(null=True, blank=True)
    datetime = models.DateTimeField(null=True, blank=True)
    assembly = models.ForeignKey('Coopgisassembly', related_name="Coopamrgisphaseupdatelog_assembly", null=True, blank=True)
    previousphasecode = models.TextField(blank=True)
    newphasecode = models.TextField(blank=True)
    class Meta:
        db_table = u'coopamrgisphaseupdatelog'
        app_label='djangoproject'

#Coopgisapplicationdefaultmap had 54 rows.
class Coopgisapplicationdefaultmap(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    username = models.CharField(max_length=250, db_column='UserName') # Field name made lowercase.
    applicationname = models.CharField(max_length=250, db_column='ApplicationName') # Field name made lowercase.
    map = models.ForeignKey('Coopgismap', related_name="Coopgisapplicationdefaultmap_map", db_column='Map_id') # Field name made lowercase.
    class Meta:
        db_table = u'coopgisapplicationdefaultmap'
        app_label='djangoproject'

#Coopgisassembly had 765459 rows.
class Coopgisassembly(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    station = models.ForeignKey('Coopgisstation', related_name="Coopgisassembly_station", null=True, db_column='Station_id', blank=True) # Field name made lowercase.
    span = models.ForeignKey('Coopgisspan', related_name="Coopgisassembly_span", null=True, db_column='Span_id', blank=True) # Field name made lowercase.
    compatibleunit = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisassembly_compatibleunit", db_column='CompatibleUnit_id') # Field name made lowercase.
    rotation = models.FloatField()
    phaseaindicator = models.BooleanField()
    phasebindicator = models.BooleanField()
    phasecindicator = models.BooleanField()
    phaseneutralindicator = models.BooleanField()
    circuitnumber = models.IntegerField()
    tagnumber = models.CharField(max_length=250)
    description = models.TextField()
    manufacturer = models.ForeignKey('Coopgiscompany', related_name="Coopgisassembly_manufacturer", null=True, db_column='Manufacturer_id', blank=True) # Field name made lowercase.
    quantity = models.IntegerField()
    overheadindicator = models.BooleanField()
    undergroundindicator = models.BooleanField()
    openindicator = models.BooleanField()
    primaryindicator = models.BooleanField()
    secondaryindicator = models.BooleanField()
    serviceindicator = models.BooleanField()
    actualvoltage = models.ForeignKey('Coopgisvoltage', related_name="Coopgisassembly_actualvoltage", null=True, db_column='ActualVoltage_id', blank=True) # Field name made lowercase.
    assemblyowner = models.ForeignKey('Coopgisassemblyowner', related_name="Coopgisassembly_assemblyowner", db_column='AssemblyOwner_id') # Field name made lowercase.
    putintoservicedate = models.DateField(null=True, blank=True)
    serialnumber = models.CharField(max_length=250)
    oldmapnumber = models.CharField(max_length=250)
    conductorplacementstartstation = models.ForeignKey('Coopgisconductorplacement', related_name="Coopgisassembly_conductorplacementstartstation", null=True, db_column='ConductorPlacementStartStation_id', blank=True) # Field name made lowercase.
    conductorplacementendstation = models.ForeignKey('Coopgisconductorplacement', related_name="Coopgisassembly_conductorplacementendstation", null=True, db_column='ConductorPlacementEndStation_id', blank=True) # Field name made lowercase.
    cutoutfuse = models.ForeignKey('Coopgisfuse', related_name="Coopgisassembly_cutoutfuse", null=True, db_column='CutOutFuse_id', blank=True) # Field name made lowercase.
    reclosermaximumcontinuousamp = models.FloatField(null=True, blank=True)
    reclosermaximumintermittentamp = models.FloatField(null=True, blank=True)
    recloserlinkrating = models.FloatField(null=True, blank=True)
    transformerprimarywinding = models.ForeignKey('Coopgistransformerwindingtype', related_name="Coopgisassembly_transformerprimarywinding", null=True, db_column='TransformerPrimaryWinding_id', blank=True) # Field name made lowercase.
    transformersecondarywinding = models.ForeignKey('Coopgistransformerwindingtype', related_name="Coopgisassembly_transformersecondarywinding", null=True, db_column='TransformerSecondaryWinding_id', blank=True) # Field name made lowercase.
    transformercompletelyselfprotectedindicator = models.NullBooleanField(null=True, blank=True)
    transformersecondaryhighvoltage = models.ForeignKey('Coopgisvoltage', related_name="Coopgisassembly_transformersecondaryhighvoltage", null=True, db_column='TransformerSecondaryHighVoltage_id', blank=True) # Field name made lowercase.
    transformersecondarylowvoltage = models.ForeignKey('Coopgisvoltage', related_name="Coopgisassembly_transformersecondarylowvoltage", null=True, db_column='TransformerSecondaryLowVoltage_id', blank=True) # Field name made lowercase.
    lightlamptype = models.ForeignKey('Coopgislightlamptype', related_name="Coopgisassembly_lightlamptype", null=True, db_column='LightLampType_id', blank=True) # Field name made lowercase.
    lightfixturetype = models.ForeignKey('Coopgislightfixturetype', related_name="Coopgisassembly_lightfixturetype", null=True, db_column='LightFixtureType_id', blank=True) # Field name made lowercase.
    polerightofwaystatus = models.ForeignKey('Coopgispolerightofwaystatus', related_name="Coopgisassembly_polerightofwaystatus", null=True, db_column='PoleRightOfWayStatus_id', blank=True) # Field name made lowercase.
    polelightindicator = models.NullBooleanField(null=True, blank=True)
    poleguyindicator = models.NullBooleanField(null=True, blank=True)
    polestubindicator = models.NullBooleanField(null=True, blank=True)
    polemeterindicator = models.NullBooleanField(null=True, blank=True)
    reclosertype = models.CharField(max_length=250, blank=True)
    reclosertripsetting = models.TextField()
    regulatorcurrenttransformerrating = models.FloatField(null=True, blank=True)
    regulatorpaneltype = models.CharField(max_length=250, blank=True)
    regulatorsetting = models.IntegerField(null=True, blank=True)
    meterdescription = models.TextField()
    meterlocationnumberfromcis = models.CharField(max_length=250)
    meterservicetype = models.ForeignKey('Coopgismeterservicetype', related_name="Coopgisassembly_meterservicetype", null=True, db_column='MeterServiceType_id', blank=True) # Field name made lowercase.
    meterdcsinumber = models.CharField(max_length=250)
    meternumber = models.CharField(max_length=250)
    meterform = models.ForeignKey('Coopgismeterform', related_name="Coopgisassembly_meterform", null=True, db_column='MeterForm_id', blank=True) # Field name made lowercase.
    meteronpoleindicator = models.BooleanField()
    meteractiveindicator = models.BooleanField()
    substationname = models.CharField(max_length=250, blank=True)
    substationsourceregulatedindicator = models.NullBooleanField(null=True, blank=True)
    substationloadconnection = models.CharField(max_length=250, blank=True)
    substationvoltage = models.ForeignKey('Coopgisvoltage', related_name="Coopgisassembly_substationvoltage", null=True, db_column='SubstationVoltage_id', blank=True) # Field name made lowercase.
    createdate = models.DateField(null=True, blank=True)
    physicaladdress = models.CharField(max_length=255, blank=True)
    assemblyresidesonserverindicator = models.NullBooleanField(null=True, db_column='AssemblyResidesOnServerIndicator', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    downstreamprotectedspans = models.TextField(db_column='DownstreamProtectedSpans', blank=True) # Field name made lowercase.
    upstreamassembly_id = models.IntegerField(null=True, db_column='UpstreamAssembly_id', blank=True) # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    lastmodifydate = models.DateField(null=True, blank=True)
    networkconnectivitylastverifyindicator = models.NullBooleanField(null=True, db_column='NetworkConnectivityLastVerifyIndicator', blank=True) # Field name made lowercase.
    upstreamgeneratorassembly_id = models.IntegerField(null=True, db_column='UpstreamGeneratorAssembly_id', blank=True) # Field name made lowercase.
    idleindicator = models.NullBooleanField(null=True, blank=True)
    installstatus_id = models.IntegerField(null=True, db_column='InstallStatus_id', blank=True) # Field name made lowercase.
    stakerworkorder_id = models.IntegerField(null=True, db_column='StakerWorkOrder_id', blank=True) # Field name made lowercase.
    stakerlength = models.FloatField(null=True, blank=True)
    stakerstationoverride_id = models.IntegerField(null=True, db_column='StakerStationOverride_id', blank=True) # Field name made lowercase.
    transformercutoutindicator = models.NullBooleanField(null=True, blank=True)
    stakerrecipenumber = models.IntegerField(null=True, blank=True)
    bypassindicator = models.NullBooleanField(null=True, blank=True)
    bypassassembly_id = models.IntegerField(null=True, db_column='BypassAssembly_id', blank=True) # Field name made lowercase.
    dictionary = models.TextField(blank=True)
    mapnumber = models.IntegerField(null=True, blank=True)
    transformerbank = models.IntegerField(null=True, blank=True)
    class Meta:
        db_table = u'coopgisassembly'
        app_label='djangoproject'

#Coopgisassemblyowner had 7 rows.
class Coopgisassemblyowner(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgisassemblyowner'
        app_label='djangoproject'
    def GetLongMapNumber(self):
        if(len(self.OldMapNumber) < 2):
            return 'UNKNOWN'
        Numbers=self.OldMapNumber.split('-')
        if(not Numbers[0]):
            return 'UNKNOWN, Initial "-"'
        if(Numbers[0][0] == 'E'):
            #Handle E Number here
            FirstNumber='500'
            SecondNumber=Numbers[0][1:].rjust(3, '0')
            if(len(Numbers) == 2):
                ThirdNumber=Numbers[1].rjust(5, '0')
            else:
                ThirdNumber=Numbers[1].rjust(2, '0') + Numbers[2].rjust(3, '0')                
            return FirstNumber + SecondNumber + ThirdNumber
        if(len(Numbers) == 4):
            FirstNumber=Numbers[0] + '00'
            SecondNumber=Numbers[1]
            ThirdNumber=Numbers[2].rjust(3, '0')
            FourthNumber=''
            FifthNumber=Numbers[3].rjust(3, '0')
            return FirstNumber + SecondNumber + ThirdNumber + FourthNumber + FifthNumber
        if(len(Numbers) == 5):
            FirstNumber=Numbers[0] + '00'
            SecondNumber=Numbers[1]
            ThirdNumber=Numbers[2]
            FourthNumber=Numbers[3].rjust(2, '0')
            FifthNumber=Numbers[4].rjust(3, '0')
            return FirstNumber + SecondNumber + ThirdNumber + FourthNumber + FifthNumber
        else:
            return 'Possibly Invalid GIS Map Number:  ' + self.OldMapNumber

#Coopgisboarddistrict had 10 rows.
class Coopgisboarddistrict(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250)
    description = models.TextField(db_column='Description') # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    cisidentifier = models.TextField(db_column='cisidentifier') # Field name made lowercase.
    the_geom = models.PolygonField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisboarddistrict'
        app_label='djangoproject'

#Coopgiscircuittrace had 65934 rows.
class Coopgiscircuittrace(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    username = models.TextField(db_column='UserName') # Field name made lowercase.
    circuitnumber = models.TextField(db_column='CircuitNumber') # Field name made lowercase.
    phasecode = models.TextField(db_column='PhaseCode') # Field name made lowercase.
    span = models.ForeignKey('Coopgisspan', related_name="Coopgiscircuittrace_span", db_column='Span_id') # Field name made lowercase.
    the_geom = models.LineStringField(srid=2273)
    afterstarttagindicator = models.NullBooleanField(null=True, blank=True)
    afterendtagindicator = models.NullBooleanField(null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgiscircuittrace'
        app_label='djangoproject'

#Coopgiscommand had 226394 rows.
class Coopgiscommand(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.TextField()
    assemblyname = models.TextField(blank=True)
    tagnumber = models.TextField(blank=True)
    commandprocessedindicator = models.NullBooleanField(null=True, blank=True)
    commandresidesonserverindicator = models.NullBooleanField(null=True, blank=True)
    commandprocesseddatetime = models.DateTimeField(null=True, blank=True)
    commandusername = models.TextField(blank=True)
    commandcreatedatetime = models.DateTimeField(null=True, blank=True)
    commandprocessfailedindicator = models.NullBooleanField(null=True, blank=True)
    commandupdatenumber = models.TextField(blank=True)
    commandverifiedindicator = models.NullBooleanField(null=True, blank=True)
    startpoint = models.PointField(srid=2273, null=True, blank=True)
    endpoint = models.PointField(srid=2273, null=True, blank=True)
    polygon = models.PolygonField(srid=2273, null=True, blank=True)
    line = models.LineStringField(srid=2273, null=True, blank=True)
    dictionary = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgiscommand'
        app_label='djangoproject'

#Coopgiscompany had 48 rows.
class Coopgiscompany(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    poletreatmentindicator = models.BooleanField(db_column='PoleTreatmentIndicator') # Field name made lowercase.
    polejointuseindicator = models.BooleanField(db_column='PoleJointUseIndicator') # Field name made lowercase.
    manufacturerindicator = models.BooleanField(db_column='ManufacturerIndicator') # Field name made lowercase.
    vegetationmanagementindicator = models.NullBooleanField(null=True, db_column='VegetationManagementIndicator', blank=True) # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    contractorindicator = models.NullBooleanField(null=True, db_column='ContractorIndicator', blank=True) # Field name made lowercase.
    groundrodtestindicator = models.NullBooleanField(null=True, blank=True)
    class Meta:
        db_table = u'coopgiscompany'
        app_label='djangoproject'

#Coopgiscompatibleunit had 1191 rows.
class Coopgiscompatibleunit(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, unique=True, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    compatibleunitcategory = models.ForeignKey('Coopgiscompatibleunitcategory', related_name="Coopgiscompatibleunit_compatibleunitcategory", null=True, db_column='CompatibleUnitCategory_id', blank=True) # Field name made lowercase.
    laborhours = models.FloatField(db_column='LaborHours') # Field name made lowercase.
    kva = models.FloatField(null=True, db_column='KVA', blank=True) # Field name made lowercase.
    kvar = models.FloatField(null=True, db_column='KVAR', blank=True) # Field name made lowercase.
    inputvoltage = models.ForeignKey('Coopgisvoltage', related_name="Coopgiscompatibleunit_inputvoltage", null=True, db_column='InputVoltage_id', blank=True) # Field name made lowercase.
    firstoutputvoltage = models.ForeignKey('Coopgisvoltage', related_name="Coopgiscompatibleunit_firstoutputvoltage", null=True, db_column='FirstOutputVoltage_id', blank=True) # Field name made lowercase.
    secondoutputvoltage = models.ForeignKey('Coopgisvoltage', related_name="Coopgiscompatibleunit_secondoutputvoltage", null=True, db_column='SecondOutputVoltage_id', blank=True) # Field name made lowercase.
    maximumcontinousamp = models.FloatField(null=True, db_column='MaximumContinousAmp', blank=True) # Field name made lowercase.
    wattage = models.FloatField(null=True, db_column='Wattage', blank=True) # Field name made lowercase.
    height = models.CharField(max_length=250, db_column='Height', blank=True) # Field name made lowercase.
    class_field = models.CharField(max_length=250, db_column='Class', blank=True) # Field name made lowercase. Field renamed because it was a Python reserved word.
    stationindicator = models.BooleanField(db_column='StationIndicator') # Field name made lowercase.
    spanindicator = models.BooleanField(db_column='SpanIndicator') # Field name made lowercase.
    normallyoverheadindicator = models.BooleanField(db_column='NormallyOverHeadIndicator') # Field name made lowercase.
    normallyundergroundindicator = models.BooleanField(db_column='NormallyUndergroundIndicator') # Field name made lowercase.
    conductorindicator = models.BooleanField(db_column='ConductorIndicator') # Field name made lowercase.
    conduitindicator = models.BooleanField(db_column='ConduitIndicator') # Field name made lowercase.
    spanguyindicator = models.BooleanField(db_column='SpanGuyIndicator') # Field name made lowercase.
    capacitorindicator = models.BooleanField(db_column='CapacitorIndicator') # Field name made lowercase.
    cutoutindicator = models.BooleanField(db_column='CutOutIndicator') # Field name made lowercase.
    feederindicator = models.BooleanField(db_column='FeederIndicator') # Field name made lowercase.
    groundindicator = models.BooleanField(db_column='GroundIndicator') # Field name made lowercase.
    lightindicator = models.BooleanField(db_column='LightIndicator') # Field name made lowercase.
    lightningarrestorindicator = models.BooleanField(db_column='LightningArrestorIndicator') # Field name made lowercase.
    openpointindicator = models.BooleanField(db_column='OpenPointIndicator') # Field name made lowercase.
    vaultindicator = models.BooleanField(db_column='VaultIndicator') # Field name made lowercase.
    miscellaneousequipmentindicator = models.BooleanField(db_column='MiscellaneousEquipmentIndicator') # Field name made lowercase.
    poleindicator = models.BooleanField(db_column='PoleIndicator') # Field name made lowercase.
    recloserindicator = models.BooleanField(db_column='RecloserIndicator') # Field name made lowercase.
    regulatorindicator = models.BooleanField(db_column='RegulatorIndicator') # Field name made lowercase.
    meterindicator = models.BooleanField(db_column='MeterIndicator') # Field name made lowercase.
    servicepointindicator = models.BooleanField(db_column='ServicePointIndicator') # Field name made lowercase.
    substationindicator = models.BooleanField(db_column='SubstationIndicator') # Field name made lowercase.
    switchindicator = models.BooleanField(db_column='SwitchIndicator') # Field name made lowercase.
    transformerindicator = models.BooleanField(db_column='TransformerIndicator') # Field name made lowercase.
    urdmarkerindicator = models.BooleanField(db_column='URDMarkerIndicator') # Field name made lowercase.
    stakerpoleindicator = models.BooleanField(db_column='StakerPoleIndicator') # Field name made lowercase.
    stakertransformerindicator = models.BooleanField(db_column='StakerTransformerIndicator') # Field name made lowercase.
    stakermiscequipmentindicator = models.BooleanField(db_column='StakerMiscEquipmentIndicator') # Field name made lowercase.
    stakergroundindicator = models.BooleanField(db_column='StakerGroundIndicator') # Field name made lowercase.
    stakerguyguyindicator = models.BooleanField(db_column='StakerGuyGuyIndicator') # Field name made lowercase.
    stakerguyanchorindicator = models.BooleanField(db_column='StakerGuyAnchorIndicator') # Field name made lowercase.
    conductornumberofwires = models.IntegerField(null=True, db_column='ConductorNumberOfWires', blank=True) # Field name made lowercase.
    gisindicator = models.NullBooleanField(null=True, db_column='GISIndicator', blank=True) # Field name made lowercase.
    cisindicator = models.NullBooleanField(null=True, db_column='CISIndicator', blank=True) # Field name made lowercase.
    stakerunitindicator = models.NullBooleanField(null=True, db_column='StakerUnitIndicator', blank=True) # Field name made lowercase.
    stakerspanassemblyindicator = models.NullBooleanField(null=True, db_column='StakerSpanAssemblyIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgiscompatibleunit'
        app_label='djangoproject'

#Coopgiscompatibleunitprice had 881 rows.
class Coopgiscompatibleunitprice(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    compatibleunit = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgiscompatibleunitprice_compatibleunit", db_column='CompatibleUnit_id') # Field name made lowercase.
    codedinstallprice = models.FloatField(db_column='CodedInstallPrice') # Field name made lowercase.
    codedremoveprice = models.FloatField(db_column='CodedRemovePrice') # Field name made lowercase.
    compatibleunitpricecontract_id = models.IntegerField(db_column='CompatibleUnitPriceContract_id') # Field name made lowercase.
    residesonserverindicator = models.BooleanField(db_column='ResidesOnServerIndicator') # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgiscompatibleunitprice'
        app_label='djangoproject'

#Coopgiscompatibleunitpricecontract had 2 rows.
class Coopgiscompatibleunitpricecontract(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, unique=True, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    activeindicator = models.NullBooleanField(null=True, db_column='ActiveIndicator', blank=True) # Field name made lowercase.
    startdate = models.DateField(db_column='StartDate') # Field name made lowercase.
    enddate = models.DateField(db_column='EndDate') # Field name made lowercase.
    createcommand = models.ForeignKey('Coopgiscommand', related_name="Coopgiscompatibleunitpricecontract_createcommand", null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    company = models.ForeignKey('Coopgiscompany', related_name="Coopgiscompatibleunitpricecontract_company", db_column='Company_id') # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgiscompatibleunitpricecontract'
        app_label='djangoproject'

#Coopgiscondition had 258 rows.
class Coopgiscondition(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    priorityimmediateindicator = models.NullBooleanField(null=True, blank=True)
    priorityasapindicator = models.NullBooleanField(null=True, blank=True)
    priorityroutineindicator = models.NullBooleanField(null=True, blank=True)
    priorityeverythingfixedmaintenanceonlyindicator = models.NullBooleanField(null=True, blank=True)
    priorityeverythingokinspectiononlyindicator = models.NullBooleanField(null=True, blank=True)
    priorityvegetationneedsattentionindicator = models.NullBooleanField(null=True, blank=True)
    priorityoutdoorlightingconversionindicator = models.NullBooleanField(null=True, blank=True)
    conditiondepartment = models.ForeignKey('Coopgisconditiondepartment', related_name="Coopgiscondition_conditiondepartment", db_column='conditiondepartment')
    personreporting = models.TextField(blank=True)
    datetimereported = models.DateTimeField(null=True, blank=True)
    receivedbyoperationsindicator = models.NullBooleanField(null=True, blank=True)
    datetimereceivedbyoperations = models.DateTimeField(null=True, blank=True)
    stationidentifier = models.TextField(blank=True)
    tagnumber = models.TextField(blank=True)
    needsretirementindicator = models.NullBooleanField(null=True, blank=True)
    description = models.TextField(blank=True)
    outdoorlightmapnumber = models.TextField(blank=True)
    outdoorlightmeternumber = models.TextField(blank=True)
    outdoorlightmetermapnumber = models.TextField(blank=True)
    outdoorlightidleindicator = models.NullBooleanField(null=True, blank=True)
    outdoorlightrate = models.IntegerField(null=True, blank=True)
    outdoorlightcustomerownspoleindicator = models.NullBooleanField(null=True, blank=True)
    outdoorlightcustomerownslightindicator = models.NullBooleanField(null=True, blank=True)
    outdoorlightadditionalbillingpolecount = models.IntegerField(db_column='outdoorlightadditionalbillingpolecount', null=True, blank=True)
    poleconditionstatus = models.IntegerField()
    guyanchorconditionstatus = models.ForeignKey('Coopgisconditionstatus', related_name="Coopgiscondition_guyanchorconditionstatus", db_column='guyanchorconditionstatus')
    insulatorconditionstatus = models.ForeignKey('Coopgisconditionstatus', related_name="Coopgiscondition_insulatorconditionstatus", db_column='insulatorconditionstatus')
    conductorconditionstatus = models.ForeignKey('Coopgisconditionstatus', related_name="Coopgiscondition_conductorconditionstatus", db_column='conductorconditionstatus')
    rightofwayconditionstatus = models.ForeignKey('Coopgisconditionstatus', related_name="Coopgiscondition_rightofwayconditionstatus", db_column='rightofwayconditionstatus')
    padmountconditionstatus = models.ForeignKey('Coopgisconditionstatus', related_name="Coopgiscondition_padmountconditionstatus", db_column='padmountconditionstatus')
    vaultconditionstatus = models.ForeignKey('Coopgisconditionstatus', related_name="Coopgiscondition_vaultconditionstatus", db_column='vaultconditionstatus')
    risercableconditionstatus = models.ForeignKey('Coopgisconditionstatus', related_name="Coopgiscondition_risercableconditionstatus", db_column='risercableconditionstatus')
    workordernumber = models.ForeignKey('Coopgisconditionstatus', related_name="Coopgiscondition_workordernumber", null=True, db_column='workordernumber', blank=True)
    workremarks = models.TextField(blank=True)
    workperformedby = models.TextField(blank=True)
    workhours = models.FloatField(null=True, blank=True)
    workdate = models.DateField(null=True, blank=True)
    workcompletedindicator = models.NullBooleanField(null=True, blank=True)
    worknotcompletedindicator = models.NullBooleanField(null=True, blank=True)
    worknotcompleteddescription = models.TextField(blank=True)
    workforeman = models.TextField(blank=True)
    workforemansignoffindicator = models.NullBooleanField(null=True, blank=True)
    workforemansignoffdatetime = models.DateTimeField(null=True, blank=True)
    reviewindicator = models.NullBooleanField(null=True, blank=True)
    reviewadditionalattentionneededindicator = models.NullBooleanField(null=True, blank=True)
    reviewcomments = models.TextField(blank=True)
    reviewusername = models.TextField(blank=True)
    reviewdatetime = models.DateTimeField(null=True, blank=True)
    deletedindicator = models.NullBooleanField(null=True, blank=True)
    createdatetime = models.DateTimeField(null=True, blank=True)
    createusername = models.TextField(blank=True)
    lastmodifydatetime = models.DateTimeField(null=True, blank=True)
    lastmodifyusername = models.TextField(blank=True)
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    archivedindicator = models.NullBooleanField(null=True, blank=True)
    archivedusername = models.TextField(blank=True)
    archiveddatetime = models.DateTimeField(null=True, blank=True)
    point = models.PointField(srid=2273, null=True, blank=True)
    outdoorlightbillingworkstartedindicator = models.NullBooleanField(null=True, blank=True)
    symbologyyear = models.TextField(blank=True)
    circuitnumbers = models.TextField(blank=True)
    retirementindicatormodifyusername = models.TextField(blank=True)
    retirementindicatormodifydatetime = models.DateTimeField(null=True, blank=True)
    retirementcompleteindicator = models.NullBooleanField(null=True, blank=True)
    retirementcompleteusername = models.TextField(blank=True)
    retirementcompletedatetime = models.DateTimeField(null=True, blank=True)
    outdoorlightgisphaseindicator = models.NullBooleanField(null=True, blank=True)
    outdoorlightsendbacktobillingphaseindicator = models.NullBooleanField(null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgiscondition'
        app_label='djangoproject'

#Coopgisconditiondepartment had 2 rows.
class Coopgisconditiondepartment(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgisconditiondepartment'
        app_label='djangoproject'

#Coopgisconditionmemberdescriptionhistory had 225 rows.
class Coopgisconditionmemberdescriptionhistory(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    condition = models.ForeignKey('Coopgiscondition', related_name="Coopgisconditionmemberdescriptionhistory_condition", db_column='condition')
    description = models.TextField(blank=True)
    createdatetime = models.DateTimeField(null=True, blank=True)
    createusername = models.TextField(blank=True)
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    class Meta:
        db_table = u'coopgisconditionmemberdescriptionhistory'
        app_label='djangoproject'

#Coopgisconditionstatus had 3 rows.
class Coopgisconditionstatus(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.TextField(db_column='Name', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgisconditionstatus'
        app_label='djangoproject'

#Coopgisconductorplacement had 1 rows.
class Coopgisconductorplacement(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    horizontallocation = models.IntegerField(db_column='HorizontalLocation') # Field name made lowercase.
    verticallocation = models.IntegerField(db_column='VerticalLocation') # Field name made lowercase.
    class Meta:
        db_table = u'coopgisconductorplacement'
        app_label='djangoproject'

#Coopgiscounty had 47 rows.
class Coopgiscounty(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=90, db_column='Name', blank=True) # Field name made lowercase.
    the_geom = models.MultiPolygonField(null=True, blank=True)
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    cisidentifier = models.TextField(db_column='cisidentifier') # Field name made lowercase.
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgiscounty'
        app_label='djangoproject'

#Coopgisfuse had 3 rows.
class Coopgisfuse(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    amprating = models.FloatField(null=True, db_column='AmpRating', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgisfuse'
        app_label='djangoproject'

#Coopgisgrid had 93 rows.
class Coopgisgrid(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250)
    description = models.TextField()
    subgridindicator = models.BooleanField()
    the_geom = models.PolygonField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisgrid'
        app_label='djangoproject'

#Coopgisgroundrodtest had 6105 rows.
class Coopgisgroundrodtest(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    stationidentifier = models.IntegerField(null=True, blank=True)
    groundrodtestdate = models.DateField()
    groundrodnumber = models.IntegerField()
    resistancereading = models.FloatField(null=True, blank=True)
    company = models.ForeignKey('Coopgiscompany', related_name="Coopgisgroundrodtest_company", db_column='company')
    workordernumber = models.TextField(blank=True)
    description = models.TextField(blank=True)
    setupindicator = models.NullBooleanField(null=True, blank=True)
    inspectionpersonname = models.TextField(blank=True)
    substationname = models.TextField(blank=True)
    createdatetime = models.DateTimeField(null=True, blank=True)
    lastmodifydatetime = models.DateTimeField(null=True, blank=True)
    createusername = models.TextField(blank=True)
    lastmodifyusername = models.TextField(blank=True)
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    createcommand = models.ForeignKey('Coopgiscommand', related_name="Coopgisgroundrodtest_createcommand", null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisgroundrodtest'
        app_label='djangoproject'

#Coopgisinstallstatus had 3 rows.
class Coopgisinstallstatus(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    stakerreportorder = models.IntegerField(null=True, db_column='StakerReportOrder', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgisinstallstatus'
        app_label='djangoproject'

#Coopgislandmarkline had 1 rows.
class Coopgislandmarkline(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250)
    description = models.TextField()
    landmarktype = models.ForeignKey('Coopgislandmarktype', related_name="Coopgislandmarkline_landmarktype", null=True, db_column='LandmarkType_id', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    createcommand = models.ForeignKey('Coopgiscommand', related_name="Coopgislandmarkline_createcommand", null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    symbologytext = models.TextField(blank=True)
    the_geom = models.LineStringField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgislandmarkline'
        app_label='djangoproject'

#Coopgislandmarkpolygon had 1 rows.
class Coopgislandmarkpolygon(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250)
    description = models.TextField()
    landmarktype = models.ForeignKey('Coopgislandmarktype', related_name="Coopgislandmarkpolygon_landmarktype", null=True, db_column='LandmarkType_id', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    createcommand = models.ForeignKey('Coopgiscommand', related_name="Coopgislandmarkpolygon_createcommand", null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    symbologytext = models.TextField(blank=True)
    the_geom = models.PolygonField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgislandmarkpolygon'
        app_label='djangoproject'

#Coopgislandmarktype had 2 rows.
class Coopgislandmarktype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250)
    description = models.TextField()
    pointindicator = models.BooleanField()
    lineindicator = models.BooleanField()
    polygonindicator = models.BooleanField()
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    createcommand = models.ForeignKey('Coopgiscommand', related_name="Coopgislandmarktype_createcommand", null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgislandmarktype'
        app_label='djangoproject'

#Coopgislightfixturetype had 7 rows.
class Coopgislightfixturetype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgislightfixturetype'
        app_label='djangoproject'

#Coopgislightlamptype had 4 rows.
class Coopgislightlamptype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgislightlamptype'
        app_label='djangoproject'

#Coopgislightrate had 16 rows.
class Coopgislightrate(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    unit = models.TextField()
    type = models.TextField()
    description = models.TextField()
    class Meta:
        db_table = u'coopgislightrate'
        app_label='djangoproject'

#Coopgismap had 24 rows.
class Coopgismap(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    username = models.CharField(max_length=250, db_column='UserName') # Field name made lowercase.
    lastmodifydate = models.DateField(db_column='LastModifyDate') # Field name made lowercase.
    createdate = models.DateField(db_column='CreateDate') # Field name made lowercase.
    content = models.TextField(db_column='Content') # Field name made lowercase.
    class Meta:
        db_table = u'coopgismap'
        app_label='djangoproject'

#Coopgismaptemplate had 105 rows.
class Coopgismaptemplate(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    tag = models.CharField(max_length=250, db_column='Tag') # Field name made lowercase.
    username = models.CharField(max_length=250, db_column='UserName') # Field name made lowercase.
    lastmodifydate = models.DateField(db_column='LastModifyDate') # Field name made lowercase.
    createdate = models.DateField(db_column='CreateDate') # Field name made lowercase.
    content = models.TextField(db_column='Content') # Field name made lowercase.
    class Meta:
        db_table = u'coopgismaptemplate'
        app_label='djangoproject'

#Coopgismeterform had 10 rows.
class Coopgismeterform(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgismeterform'
        app_label='djangoproject'

#Coopgismeterservicetype had 12 rows.
class Coopgismeterservicetype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgismeterservicetype'
        app_label='djangoproject'

#Coopgisomscircuitmap had 55 rows.
class Coopgisomscircuitmap(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    giscircuitnumber = models.TextField(unique=True, db_column='GISCircuitNumber', blank=True) # Field name made lowercase.
    omscircuitnumber = models.TextField(db_column='OMSCircuitNumber', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgisomscircuitmap'
        app_label='djangoproject'

#Coopgisomscustomer had 17824 rows.
class Coopgisomscustomer(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    accountnumber = models.TextField(db_column='AccountNumber', blank=True) # Field name made lowercase.
    meternumber = models.TextField(db_column='MeterNumber', blank=True) # Field name made lowercase.
    lastname = models.TextField(db_column='LastName', blank=True) # Field name made lowercase.
    firstname = models.TextField(db_column='FirstName', blank=True) # Field name made lowercase.
    address1 = models.TextField(db_column='Address1', blank=True) # Field name made lowercase.
    address2 = models.TextField(db_column='Address2', blank=True) # Field name made lowercase.
    city = models.TextField(db_column='City', blank=True) # Field name made lowercase.
    state = models.TextField(db_column='State', blank=True) # Field name made lowercase.
    zipcode = models.TextField(db_column='ZipCode', blank=True) # Field name made lowercase.
    phonenumber = models.TextField(db_column='PhoneNumber', blank=True) # Field name made lowercase.
    alternatephonenumber = models.TextField(db_column='AlternatePhoneNumber', blank=True) # Field name made lowercase.
    maplocation = models.TextField(db_column='MapLocation', blank=True) # Field name made lowercase.
    servicelocation = models.TextField(db_column='ServiceLocation', blank=True) # Field name made lowercase.
    amrnumber = models.TextField(db_column='AMRNumber', blank=True) # Field name made lowercase.
    calculatedoldmapnumber = models.CharField(max_length=250, db_column='CalculatedOldMapNumber') # Field name made lowercase.
    calculateddcsinumber = models.CharField(max_length=250, db_column='CalculatedDCSINumber') # Field name made lowercase.
    class Meta:
        db_table = u'coopgisomscustomer'
        app_label='djangoproject'

#Coopgisomssubstationmap had 13 rows.
class Coopgisomssubstationmap(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    gissubstationnumber = models.TextField(unique=True, db_column='GISSubstationNumber', blank=True) # Field name made lowercase.
    omssubstationnumber = models.TextField(db_column='OMSSubstationNumber', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgisomssubstationmap'
        app_label='djangoproject'

#Coopgisoutdoorlightconsumerownedlightcount had 1 rows.
class Coopgisoutdoorlightconsumerownedlightcount(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    metermapnumber = models.TextField(unique=True)
    lightcount = models.IntegerField()
    createdatetime = models.DateTimeField(null=True, blank=True)
    createusername = models.TextField(blank=True)
    lastmodifydatetime = models.DateTimeField(null=True, blank=True)
    lastmodifyusername = models.TextField(blank=True)
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    class Meta:
        db_table = u'coopgisoutdoorlightconsumerownedlightcount'
        app_label='djangoproject'

#Coopgisoutdoorlightrate had 16 rows.
class Coopgisoutdoorlightrate(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    unitname = models.TextField(blank=True)
    type = models.TextField(blank=True)
    wattage = models.FloatField(null=True, blank=True)
    kwh = models.FloatField(null=True, blank=True)
    description = models.TextField(blank=True)
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    class Meta:
        db_table = u'coopgisoutdoorlightrate'
        app_label='djangoproject'

#Coopgispolejointuse had 8304 rows.
class Coopgispolejointuse(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    polejointusetype = models.ForeignKey('Coopgispolejointusetype', related_name="Coopgispolejointuse_polejointusetype", db_column='PoleJointUseType_id') # Field name made lowercase.
    company = models.ForeignKey('Coopgiscompany', related_name="Coopgispolejointuse_company", db_column='Company_id') # Field name made lowercase.
    quantity = models.IntegerField(db_column='Quantity') # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    station_id = models.IntegerField(null=True, db_column='Station_id', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgispolejointuse'
        app_label='djangoproject'

#Coopgispolejointusetype had 18 rows.
class Coopgispolejointusetype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgispolejointusetype'
        app_label='djangoproject'

#Coopgispolerightofwaystatus had 3 rows.
class Coopgispolerightofwaystatus(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgispolerightofwaystatus'
        app_label='djangoproject'

#Coopgispoletreatment had 49367 rows.
class Coopgispoletreatment(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    pole = models.ForeignKey('Coopgisassembly', related_name="Coopgispoletreatment_pole", db_column='Pole_id') # Field name made lowercase.
    company = models.ForeignKey('Coopgiscompany', related_name="Coopgispoletreatment_company", db_column='Company_id') # Field name made lowercase.
    poletreatmenttype = models.ForeignKey('Coopgispoletreatmenttype', related_name="Coopgispoletreatment_poletreatmenttype", db_column='PoleTreatmentType_id') # Field name made lowercase.
    poletreatmentdate = models.DateField(db_column='PoleTreatmentDate') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    brokenguyindicator = models.NullBooleanField(null=True, db_column='BrokenGuyIndicator', blank=True) # Field name made lowercase.
    brokeninsulatorindicator = models.NullBooleanField(null=True, db_column='BrokenInsulatorIndicator', blank=True) # Field name made lowercase.
    visualinspectionindicator = models.NullBooleanField(null=True, db_column='VisualInspectionIndicator', blank=True) # Field name made lowercase.
    visualinspectionandexcavationindicator = models.NullBooleanField(null=True, db_column='VisualInspectionAndExcavationIndicator', blank=True) # Field name made lowercase.
    internaltreatmentindicator = models.NullBooleanField(null=True, db_column='InternalTreatmentIndicator', blank=True) # Field name made lowercase.
    internalvoidtreatmentindicator = models.NullBooleanField(null=True, db_column='InternalVoidTreatmentIndicator', blank=True) # Field name made lowercase.
    lightningarrestorblownindicator = models.NullBooleanField(null=True, db_column='LightningArrestorBlownIndicator', blank=True) # Field name made lowercase.
    newpoleindicator = models.NullBooleanField(null=True, db_column='NewPoleIndicator', blank=True) # Field name made lowercase.
    poleleaningindicator = models.NullBooleanField(null=True, db_column='PoleLeaningIndicator', blank=True) # Field name made lowercase.
    splittopindicator = models.NullBooleanField(null=True, db_column='SplitTopIndicator', blank=True) # Field name made lowercase.
    internaldecaytreatmentindicator = models.NullBooleanField(null=True, db_column='InternalDecayTreatmentIndicator', blank=True) # Field name made lowercase.
    woodpeckerholesindicator = models.NullBooleanField(null=True, db_column='WoodpeckerHolesIndicator', blank=True) # Field name made lowercase.
    wireneutrallowindicator = models.NullBooleanField(null=True, db_column='WireNeutralLowIndicator', blank=True) # Field name made lowercase.
    wireprimarylowindicator = models.NullBooleanField(null=True, db_column='WirePrimaryLowIndicator', blank=True) # Field name made lowercase.
    wiresecondarylowindicator = models.NullBooleanField(null=True, db_column='WireSecondaryLowIndicator', blank=True) # Field name made lowercase.
    drilledindicator = models.NullBooleanField(null=True, db_column='DrilledIndicator', blank=True) # Field name made lowercase.
    groundlinetreatmentindicator = models.NullBooleanField(null=True, db_column='GroundlineTreatmentIndicator', blank=True) # Field name made lowercase.
    rejectedindicator = models.NullBooleanField(null=True, db_column='RejectedIndicator', blank=True) # Field name made lowercase.
    createdatetime = models.DateTimeField(null=True, db_column='CreateDateTime', blank=True) # Field name made lowercase.
    lastmodifydatetime = models.DateTimeField(null=True, db_column='LastModifyDateTime', blank=True) # Field name made lowercase.
    createusername = models.TextField(db_column='CreateUserName', blank=True) # Field name made lowercase.
    lastmodifyusername = models.TextField(db_column='LastModifyUserName', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    datarecordonlyindicator = models.NullBooleanField(null=True, db_column='DataRecordOnlyIndicator', blank=True) # Field name made lowercase.
    repairedgroundindicator = models.NullBooleanField(null=True, db_column='RepairedGroundIndicator', blank=True) # Field name made lowercase.
    brokencrossarmindicator = models.NullBooleanField(null=True, db_column='BrokenCrossarmIndicator', blank=True) # Field name made lowercase.
    guymarkerreplacedquantity = models.IntegerField(null=True, db_column='GuyMarkerReplacedQuantity', blank=True) # Field name made lowercase.
    guymarkertotalquantity = models.IntegerField(null=True, db_column='GuyMarkerTotalQuantity', blank=True) # Field name made lowercase.
    guymarkeradjustedindicator = models.NullBooleanField(null=True, db_column='GuyMarkerAdjustedIndicator', blank=True) # Field name made lowercase.
    rotindicator = models.NullBooleanField(null=True, blank=True)
    class Meta:
        db_table = u'coopgispoletreatment'
        app_label='djangoproject'

#Coopgispoletreatmenttype had 5 rows.
class Coopgispoletreatmenttype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgispoletreatmenttype'
        app_label='djangoproject'

#Coopgisprotectingassembly had 4053 rows.
class Coopgisprotectingassembly(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    assembly = models.ForeignKey('Coopgisassembly', related_name="Coopgisprotectingassembly_assembly", db_column='Assembly_id') # Field name made lowercase.
    span = models.ForeignKey('Coopgisspan', related_name="Coopgisprotectingassembly_span", db_column='Span_id') # Field name made lowercase.
    class Meta:
        db_table = u'coopgisprotectingassembly'
        app_label='djangoproject'

#Coopgisreportpagenumberpolygon had 9 rows.
class Coopgisreportpagenumberpolygon(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250)
    mapreportidentifier = models.CharField(max_length=250)
    pagenumber = models.CharField(max_length=250)
    the_geom = models.PolygonField()
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisreportpagenumberpolygon'
        app_label='djangoproject'

#Coopgisroad had 50539 rows.
class Coopgisroad(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, blank=True)
    shadowname = models.CharField(max_length=250, db_column='Name', blank=True) # Field name made lowercase.
    alternatename = models.CharField(max_length=250, db_column='AlternateName', blank=True) # Field name made lowercase.
    number = models.CharField(max_length=250, blank=True)
    interstateindicator = models.NullBooleanField(null=True, blank=True)
    ushighwayindicator = models.NullBooleanField(null=True, blank=True)
    statehighwayindicator = models.NullBooleanField(null=True, blank=True)
    mainroadindicator = models.NullBooleanField(null=True, blank=True)
    leftfromaddress = models.CharField(max_length=250, blank=True)
    lefttoaddress = models.CharField(max_length=250, blank=True)
    rightfromaddress = models.CharField(max_length=250, blank=True)
    righttoaddress = models.CharField(max_length=250, blank=True)
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    createcommand = models.ForeignKey('Coopgiscommand', related_name="Coopgisroad_createcommand", null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    symbologyroadtypeflag = models.CharField(max_length=1, blank=True)
    selectionusername = models.CharField(max_length=250, blank=True)
    the_geom = models.LineStringField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisroad'
        app_label='djangoproject'

#Coopgisselectionline had 2 rows.
class Coopgisselectionline(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    username = models.CharField(max_length=250, db_column='UserName') # Field name made lowercase.
    the_geom = models.LineStringField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisselectionline'
        app_label='djangoproject'

#Coopgisselectionpoint had 59 rows.
class Coopgisselectionpoint(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    username = models.CharField(max_length=250, db_column='UserName') # Field name made lowercase.
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisselectionpoint'
        app_label='djangoproject'

#Coopgisspan had 80234 rows.
class Coopgisspan(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    startstation = models.ForeignKey('Coopgisstation', related_name="Coopgisspan_startstation", db_column='StartStation_id') # Field name made lowercase.
    endstation = models.ForeignKey('Coopgisstation', related_name="Coopgisspan_endstation", db_column='EndStation_id') # Field name made lowercase.
    jointtrenchindicator = models.BooleanField(db_column='JointTrenchIndicator') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    the_geom = models.LineStringField(srid=2273)
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    tapindicator = models.NullBooleanField(null=True, db_column='TapIndicator', blank=True) # Field name made lowercase.
    symbologycompatibleunits = models.TextField(blank=True)
    symbologyinstallindicator = models.NullBooleanField(null=True, blank=True)
    symbologyexistingindicator = models.NullBooleanField(null=True, blank=True)
    symbologyremoveindicator = models.NullBooleanField(null=True, blank=True)
    stakerstoptraceindicator = models.NullBooleanField(null=True, blank=True)
    attentionneededindicator = models.NullBooleanField(null=True, db_column='AttentionNeededIndicator', blank=True) # Field name made lowercase.
    compatibleunitonename = models.TextField(blank=True)
    compatibleunittwoname = models.TextField(blank=True)
    compatibleunitonenumber = models.IntegerField(null=True, blank=True)
    compatibleunittwonumber = models.IntegerField(null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisspan'
        app_label='djangoproject'

#Coopgisstakerassemblyhistory had 54171 rows.
class Coopgisstakerassemblyhistory(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    compatibleunit = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerassemblyhistory_compatibleunit", db_column='CompatibleUnit_id') # Field name made lowercase.
    stakerworkorder = models.ForeignKey('Coopgisstakerworkorder', related_name="Coopgisstakerassemblyhistory_stakerworkorder", db_column='StakerWorkOrder_id') # Field name made lowercase.
    date = models.DateField(null=True, db_column='Date', blank=True) # Field name made lowercase.
    installindicator = models.NullBooleanField(null=True, db_column='InstallIndicator', blank=True) # Field name made lowercase.
    removeindicator = models.NullBooleanField(null=True, db_column='RemoveIndicator', blank=True) # Field name made lowercase.
    point = models.PointField(srid=2273, null=True, db_column='Point', blank=True) # Field name made lowercase.
    line = models.LineStringField(srid=2273, null=True, db_column='Line', blank=True) # Field name made lowercase.
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisstakerassemblyhistory'
        app_label='djangoproject'

#Coopgisstakerquickgeneratepolygon had 10 rows.
class Coopgisstakerquickgeneratepolygon(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    stakerworkorder = models.ForeignKey('Coopgisstakerworkorder', related_name="Coopgisstakerquickgeneratepolygon_stakerworkorder", db_column='StakerWorkOrder_id') # Field name made lowercase.
    the_geom = models.PolygonField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisstakerquickgeneratepolygon'
        app_label='djangoproject'

#Coopgisstakerrecipe had 59 rows.
class Coopgisstakerrecipe(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    install1 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_install1", null=True, db_column='Install1_id', blank=True) # Field name made lowercase.
    install2 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_install2", null=True, db_column='Install2_id', blank=True) # Field name made lowercase.
    install3 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_install3", null=True, db_column='Install3_id', blank=True) # Field name made lowercase.
    install4 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_install4", null=True, db_column='Install4_id', blank=True) # Field name made lowercase.
    remove1 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_remove1", null=True, db_column='Remove1_id', blank=True) # Field name made lowercase.
    remove2 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_remove2", null=True, db_column='Remove2_id', blank=True) # Field name made lowercase.
    remove3 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_remove3", null=True, db_column='Remove3_id', blank=True) # Field name made lowercase.
    remove4 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_remove4", null=True, db_column='Remove4_id', blank=True) # Field name made lowercase.
    result1 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_result1", null=True, db_column='Result1_id', blank=True) # Field name made lowercase.
    result2 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_result2", null=True, db_column='Result2_id', blank=True) # Field name made lowercase.
    result3 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_result3", null=True, db_column='Result3_id', blank=True) # Field name made lowercase.
    result4 = models.ForeignKey('Coopgiscompatibleunit', related_name="Coopgisstakerrecipe_result4", null=True, db_column='Result4_id', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgisstakerrecipe'
        app_label='djangoproject'

#Coopgisstakerworkorder had 3779 rows.
class Coopgisstakerworkorder(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, unique=True, db_column='Name') # Field name made lowercase.
    username = models.CharField(max_length=250, db_column='UserName') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    hazardsassociatedwithjobindicator = models.BooleanField(db_column='HazardsAssociatedWithJobIndicator') # Field name made lowercase.
    workprocedureinvolvedindicator = models.BooleanField(db_column='WorkProcedureInvolvedIndicator') # Field name made lowercase.
    specialprecautionsindicator = models.BooleanField(db_column='SpecialPrecautionsIndicator') # Field name made lowercase.
    energysourcecontrolsindicator = models.BooleanField(db_column='EnergySourceControlsIndicator') # Field name made lowercase.
    pperequirementsindicator = models.BooleanField(db_column='PPERequirementsIndicator') # Field name made lowercase.
    tailgatediscussionindicator = models.BooleanField(db_column='TailgateDiscussionIndicator') # Field name made lowercase.
    checkwhereseptictankisindicator = models.BooleanField(db_column='CheckWhereSepticTankIsIndicator') # Field name made lowercase.
    workplanreferenceindicator = models.BooleanField(db_column='WorkPlanReferenceIndicator') # Field name made lowercase.
    newconstructionindicator = models.BooleanField(db_column='NewConstructionIndicator') # Field name made lowercase.
    systemimprovementindicator = models.BooleanField(db_column='SystemImprovementIndicator') # Field name made lowercase.
    replacementindicator = models.BooleanField(db_column='ReplacementIndicator') # Field name made lowercase.
    retire_no_replacementindicator = models.BooleanField(db_column='Retire_No_ReplacementIndicator') # Field name made lowercase.
    generalfundsindicator = models.BooleanField(db_column='GeneralFundsIndicator') # Field name made lowercase.
    no_ofservicesoh = models.IntegerField(null=True, db_column='No_OfServicesOH', blank=True) # Field name made lowercase.
    no_ofservicesug = models.IntegerField(null=True, db_column='No_OfServicesUG', blank=True) # Field name made lowercase.
    wire = models.CharField(max_length=250, db_column='Wire') # Field name made lowercase.
    loanno = models.CharField(max_length=250, db_column='LoanNo') # Field name made lowercase.
    substation = models.CharField(max_length=250, db_column='Substation') # Field name made lowercase.
    mapno = models.CharField(max_length=250, db_column='MapNo') # Field name made lowercase.
    locationnextto = models.CharField(max_length=250, db_column='LocationNextTo') # Field name made lowercase.
    calhouncountyindicator = models.BooleanField(db_column='CalhounCountyIndicator') # Field name made lowercase.
    orangeburgcountyindicator = models.BooleanField(db_column='OrangeburgCountyIndicator') # Field name made lowercase.
    lexingtoncountyindicator = models.BooleanField(db_column='LexingtonCountyIndicator') # Field name made lowercase.
    richlandcountyindicator = models.BooleanField(db_column='RichlandCountyIndicator') # Field name made lowercase.
    kershawcountyindicator = models.BooleanField(db_column='KershawCountyIndicator') # Field name made lowercase.
    sumtercountyindicator = models.BooleanField(db_column='SumterCountyIndicator') # Field name made lowercase.
    workordernumber = models.CharField(max_length=250, db_column='WorkOrderNumber') # Field name made lowercase.
    w_p = models.CharField(max_length=250, db_column='W_P') # Field name made lowercase.
    n_w_p = models.CharField(max_length=250, db_column='N_W_P') # Field name made lowercase.
    engineerstaked = models.CharField(max_length=250, db_column='EngineerStaked', blank=True) # Field name made lowercase.
    engineerchecked = models.CharField(max_length=250, db_column='EngineerChecked', blank=True) # Field name made lowercase.
    engineerreleasedforconst = models.CharField(max_length=250, db_column='EngineerReleasedForConst', blank=True) # Field name made lowercase.
    co_permitno = models.CharField(max_length=250, db_column='Co_PermitNo', blank=True) # Field name made lowercase.
    pups = models.CharField(max_length=250, db_column='PUPS', blank=True) # Field name made lowercase.
    newr_windicator = models.BooleanField(db_column='NewR_WIndicator') # Field name made lowercase.
    r_wtobecutindicator = models.BooleanField(db_column='R_WToBeCutIndicator') # Field name made lowercase.
    r_wcutdate = models.CharField(max_length=250, db_column='R_WCutDate', blank=True) # Field name made lowercase.
    existingr_windicator = models.BooleanField(db_column='ExistingR_WIndicator') # Field name made lowercase.
    createdate = models.DateField(db_column='CreateDate') # Field name made lowercase.
    stakerphasestartindicator = models.NullBooleanField(null=True, db_column='StakerPhaseStartIndicator', blank=True) # Field name made lowercase.
    stakerphasestartdate = models.DateField(null=True, db_column='StakerPhaseStartDate', blank=True) # Field name made lowercase.
    outtoconstructionstartindicator = models.NullBooleanField(null=True, db_column='OutToConstructionStartIndicator', blank=True) # Field name made lowercase.
    outtoconstructionstartdate = models.DateField(null=True, db_column='OutToConstructionStartDate', blank=True) # Field name made lowercase.
    verificationphasestartindicator = models.NullBooleanField(null=True, db_column='VerificationPhaseStartIndicator', blank=True) # Field name made lowercase.
    verificationphasestartdate = models.DateField(null=True, db_column='VerificationPhaseStartDate', blank=True) # Field name made lowercase.
    archivedindicator = models.NullBooleanField(null=True, db_column='ArchivedIndicator', blank=True) # Field name made lowercase.
    archiveddate = models.DateField(null=True, db_column='ArchivedDate', blank=True) # Field name made lowercase.
    deletedindicator = models.NullBooleanField(null=True, db_column='DeletedIndicator', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    minimumx = models.FloatField(null=True, db_column='MinimumX', blank=True) # Field name made lowercase.
    minimumy = models.FloatField(null=True, db_column='MinimumY', blank=True) # Field name made lowercase.
    maximumx = models.FloatField(null=True, db_column='MaximumX', blank=True) # Field name made lowercase.
    maximumy = models.FloatField(null=True, db_column='MaximumY', blank=True) # Field name made lowercase.
    automaticallyrecalculateextentsindicator = models.NullBooleanField(null=True, db_column='AutomaticallyRecalculateExtentsIndicator', blank=True) # Field name made lowercase.
    archivedscannedworkorderfilename = models.CharField(max_length=250, db_column='ArchivedScannedWorkOrderFileName', blank=True) # Field name made lowercase.
    archivedgeneratedworkorderfilename = models.CharField(max_length=250, db_column='ArchivedGeneratedWorkOrderFileName', blank=True) # Field name made lowercase.
    startstation_id = models.IntegerField(null=True, db_column='StartStation_id', blank=True) # Field name made lowercase.
    stationsortbydistanceindicator = models.NullBooleanField(null=True, db_column='StationSortByDistanceIndicator', blank=True) # Field name made lowercase.
    stationlistoverride = models.TextField(db_column='StationListOverride', blank=True) # Field name made lowercase.
    displaymapoutlineindicator = models.NullBooleanField(null=True, db_column='DisplayMapOutlineIndicator', blank=True) # Field name made lowercase.
    the_geom = models.MultiPolygonField(srid=2273, null=True, blank=True)
    archivedinspectedworkorderfilename = models.CharField(max_length=250, db_column='ArchivedInspectedWorkOrderFileName', blank=True) # Field name made lowercase.
    estimateonlyindicator = models.NullBooleanField(null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisstakerworkorder'
        app_label='djangoproject'

#Coopgisstation had 79815 rows.
class Coopgisstation(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    description = models.TextField(db_column='Description') # Field name made lowercase.
    the_geom = models.PointField(srid=2273)
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    symbologycompatibleunits = models.TextField(blank=True)
    symbologyinstallindicator = models.NullBooleanField(null=True, blank=True)
    symbologyexistingindicator = models.NullBooleanField(null=True, blank=True)
    symbologyremoveindicator = models.NullBooleanField(null=True, blank=True)
    attentionneededindicator = models.NullBooleanField(null=True, db_column='AttentionNeededIndicator', blank=True) # Field name made lowercase.
    transformerusageanalysiscomment = models.TextField(blank=True)
    compatibleunitonename = models.TextField(blank=True)
    compatibleunittwoname = models.TextField(blank=True)
    compatibleunitonenumber = models.IntegerField(null=True, blank=True)
    compatibleunittwonumber = models.IntegerField(null=True, blank=True)
    symbologygroundrodtestyear = models.IntegerField(null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisstation'
        app_label='djangoproject'

#Coopgissymbologycutout had 3521 rows.
class Coopgissymbologycutout(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    phasecode = models.TextField()
    compatibleunit = models.TextField()
    fuseamprating = models.TextField()
    circuitnumber = models.IntegerField()
    station = models.ForeignKey('Coopgisstation', related_name="Coopgissymbologycutout_station")
    assembly = models.ForeignKey('Coopgisassembly', related_name="Coopgissymbologycutout_assembly")
    the_geom = models.PointField(srid=2273)
    tagnumber = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologycutout'
        app_label='djangoproject'

#Coopgissymbologyfeeder had 56 rows.
class Coopgissymbologyfeeder(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    rotation = models.FloatField()
    phasecode = models.TextField()
    compatibleunit = models.TextField()
    circuitnumber = models.IntegerField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    tagnumber = models.TextField(blank=True)
    omscircuitnumber = models.TextField(blank=True)
    omssubstationnumber = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyfeeder'
        app_label='djangoproject'

#Coopgissymbologyjointuse had 4479 rows.
class Coopgissymbologyjointuse(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    polejointuse = models.TextField()
    tagnumber = models.TextField()
    station = models.ForeignKey('Coopgisstation', related_name="Coopgissymbologyjointuse_station")
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyjointuse'
        app_label='djangoproject'

#Coopgissymbologylight had 18006 rows.
class Coopgissymbologylight(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    rotation = models.FloatField()
    phasecode = models.TextField()
    compatibleunit = models.TextField()
    circuitnumber = models.IntegerField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    installstatusname = models.CharField(max_length=250, blank=True)
    tagnumber = models.TextField(blank=True)
    mapnumber = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologylight'
        app_label='djangoproject'

#Coopgissymbologymeter had 19780 rows.
class Coopgissymbologymeter(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    compatibleunit = models.TextField()
    activestatus = models.TextField()
    phasecode = models.TextField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    meternumber = models.CharField(max_length=250, blank=True)
    meterdcsinumber = models.CharField(max_length=250, blank=True)
    oldmapnumber = models.CharField(max_length=250, blank=True)
    mapnumber = models.TextField(null=True, blank=True)
    meterform = models.TextField(blank=True)
    circuitnumber = models.TextField(blank=True)
    nearbytagnumber = models.TextField(blank=True)
    nearbymeters = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologymeter'
        app_label='djangoproject'

#Coopgissymbologynonprotectingassembly had 3674 rows.
class Coopgissymbologynonprotectingassembly(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    station = models.ForeignKey('Coopgisstation', related_name="Coopgissymbologynonprotectingassembly_station")
    assemblynames = models.TextField()
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologynonprotectingassembly'
        app_label='djangoproject'

#Coopgissymbologyopenpoint had 195 rows.
class Coopgissymbologyopenpoint(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    rotation = models.FloatField()
    phasecode = models.TextField()
    compatibleunit = models.TextField()
    circuitnumber = models.IntegerField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    assembly_id = models.IntegerField(null=True, blank=True)
    tagnumber = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyopenpoint'
        app_label='djangoproject'

#Coopgissymbologypole had 53727 rows.
class Coopgissymbologypole(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    compatibleunit = models.TextField()
    jointuse = models.TextField()
    poletreatment = models.TextField()
    type = models.TextField()
    tagnumber = models.TextField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologypole'
        app_label='djangoproject'

#Coopgissymbologypoletreatment had 49367 rows.
class Coopgissymbologypoletreatment(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    poletreatmenttypename = models.TextField()
    polecompanyname = models.TextField()
    poletreatmentdate = models.DateField()
    tagnumber = models.TextField()
    station = models.ForeignKey('Coopgisstation', related_name="Coopgissymbologypoletreatment_station")
    the_geom = models.PointField(srid=2273)
    year = models.IntegerField(null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologypoletreatment'
        app_label='djangoproject'

#Coopgissymbologyprimaryline had 41505 rows.
class Coopgissymbologyprimaryline(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    phasecode = models.TextField()
    compatibleunits = models.TextField()
    circuitnumber = models.IntegerField()
    span = models.ForeignKey('Coopgisspan', related_name="Coopgissymbologyprimaryline_span")
    undergroundindicator = models.NullBooleanField(null=True, blank=True)
    the_geom = models.LineStringField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyprimaryline'
        app_label='djangoproject'

#Coopgissymbologyprotectedspan had 3691 rows.
class Coopgissymbologyprotectedspan(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    spannumberastext = models.CharField(max_length=250)
    span = models.ForeignKey('Coopgisspan', related_name="Coopgissymbologyprotectedspan_span")
    protectingassemblies = models.TextField()
    the_geom = models.LineStringField(srid=2273)
    openindicatorastext = models.CharField(max_length=250, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyprotectedspan'
        app_label='djangoproject'

#Coopgissymbologyrecloser had 293 rows.
class Coopgissymbologyrecloser(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    rotation = models.FloatField()
    phasecode = models.TextField()
    compatibleunit = models.TextField()
    circuitnumber = models.IntegerField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    tagnumber = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyrecloser'
        app_label='djangoproject'

#Coopgissymbologyregulator had 17 rows.
class Coopgissymbologyregulator(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    rotation = models.FloatField()
    phasecode = models.TextField()
    compatibleunit = models.TextField()
    circuitnumber = models.IntegerField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    tagnumber = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyregulator'
        app_label='djangoproject'

#Coopgissymbologysecondaryline had 40372 rows.
class Coopgissymbologysecondaryline(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    phasecode = models.TextField()
    compatibleunits = models.TextField()
    circuitnumber = models.IntegerField()
    span = models.ForeignKey('Coopgisspan', related_name="Coopgissymbologysecondaryline_span")
    undergroundindicator = models.BooleanField()
    the_geom = models.LineStringField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologysecondaryline'
        app_label='djangoproject'

#Coopgissymbologyspanguy had 1276 rows.
class Coopgissymbologyspanguy(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    compatibleunit = models.TextField()
    span_id = models.IntegerField()
    the_geom = models.LineStringField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyspanguy'
        app_label='djangoproject'

#Coopgissymbologystakerworkorderspan had 11222 rows.
class Coopgissymbologystakerworkorderspan(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    span = models.ForeignKey('Coopgisspan', related_name="Coopgissymbologystakerworkorderspan_span")
    stakerworkorder = models.ForeignKey('Coopgisstakerworkorder', related_name="Coopgissymbologystakerworkorderspan_stakerworkorder")
    the_geom = models.LineStringField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologystakerworkorderspan'
        app_label='djangoproject'

#Coopgissymbologystakerworkorderstation had 105140 rows.
class Coopgissymbologystakerworkorderstation(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    station = models.ForeignKey('Coopgisstation', related_name="Coopgissymbologystakerworkorderstation_station")
    stakerworkorder = models.ForeignKey('Coopgisstakerworkorder', related_name="Coopgissymbologystakerworkorderstation_stakerworkorder")
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologystakerworkorderstation'
        app_label='djangoproject'

#Coopgissymbologysubstation had 14 rows.
class Coopgissymbologysubstation(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.TextField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    number = models.TextField(blank=True)
    omsnumber = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologysubstation'
        app_label='djangoproject'

#Coopgissymbologyswitch had 417 rows.
class Coopgissymbologyswitch(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    compatibleunit = models.TextField()
    phasecode = models.TextField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    installstatus_id = models.CharField(max_length=250, blank=True)
    assembly_id = models.IntegerField(null=True, blank=True)
    circuitnumber = models.IntegerField(null=True, blank=True)
    openindicator = models.NullBooleanField(null=True, blank=True)
    tagnumber = models.TextField(blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyswitch'
        app_label='djangoproject'

#Coopgissymbologytransformer had 15020 rows.
class Coopgissymbologytransformer(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    rotation = models.FloatField()
    phasecode = models.TextField()
    compatibleunit = models.TextField()
    circuitnumber = models.IntegerField()
    tagnumber = models.TextField()
    undergroundindicator = models.BooleanField()
    station = models.ForeignKey('Coopgisstation', related_name="Coopgissymbologytransformer_station")
    the_geom = models.PointField(srid=2273)
    transformerbank = models.TextField(blank=True)
    transformerbankid = models.IntegerField(null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologytransformer'
        app_label='djangoproject'

#Coopgissymbologyurdmarker had 2714 rows.
class Coopgissymbologyurdmarker(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    rotation = models.FloatField()
    phasecode = models.TextField()
    compatibleunit = models.TextField()
    circuitnumber = models.IntegerField()
    station = models.ForeignKey('Coopgisstation', related_name="Coopgissymbologyurdmarker_station")
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyurdmarker'
        app_label='djangoproject'

#Coopgissymbologyvault had 963 rows.
class Coopgissymbologyvault(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    rotation = models.FloatField()
    phasecode = models.TextField()
    compatibleunit = models.TextField()
    circuitnumber = models.IntegerField()
    station_id = models.IntegerField()
    the_geom = models.PointField(srid=2273)
    tagnumber = models.CharField(max_length=250, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgissymbologyvault'
        app_label='djangoproject'

#Coopgistransformerwindingtype had 2 rows.
class Coopgistransformerwindingtype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgistransformerwindingtype'
        app_label='djangoproject'

#Coopgisupdatelock had 1 rows.
class Coopgisupdatelock(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    indicator = models.BooleanField(db_column='Indicator') # Field name made lowercase.
    updatenumber = models.CharField(max_length=250, db_column='UpdateNumber') # Field name made lowercase.
    time = models.DateTimeField(db_column='Time') # Field name made lowercase.
    class Meta:
        db_table = u'coopgisupdatelock'
        app_label='djangoproject'

#Coopgisvoltage had 13 rows.
class Coopgisvoltage(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    value = models.FloatField(db_column='Value') # Field name made lowercase.
    primaryindicator = models.BooleanField(db_column='PrimaryIndicator') # Field name made lowercase.
    secondaryindicator = models.BooleanField(db_column='SecondaryIndicator') # Field name made lowercase.
    serviceindicator = models.BooleanField(db_column='ServiceIndicator') # Field name made lowercase.
    transmissionindicator = models.NullBooleanField(null=True, db_column='TransmissionIndicator', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgisvoltage'
        app_label='djangoproject'

#Coopgiswater had 1675 rows.
class Coopgiswater(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, blank=True)
    description = models.TextField(blank=True)
    the_geom = models.PolygonField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgiswater'
        app_label='djangoproject'

#Coopgisyardlightassociatedwithmeternumber had 10801 rows.
class Coopgisyardlightassociatedwithmeternumber(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    meternumber = models.TextField()
    quantity = models.IntegerField()
    updatedatetime = models.DateTimeField()
    class Meta:
        db_table = u'coopgisyardlightassociatedwithmeternumber'
        app_label='djangoproject'

#Countyparcelcalhoun had 13260 rows.
class Countyparcelcalhoun(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    objectid_1 = models.IntegerField(null=True, blank=True)
    apn = models.CharField(max_length=50, blank=True)
    addr = models.CharField(max_length=100, blank=True)
    city = models.CharField(max_length=50, blank=True)
    zip = models.CharField(max_length=5, blank=True)
    st_number = models.CharField(max_length=6, blank=True)
    st_name = models.CharField(max_length=150, blank=True)
    shape_leng = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    shape_area = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    assigned = models.CharField(max_length=10, blank=True)
    assign_dat = models.DateField(null=True, blank=True)
    assign_com = models.CharField(max_length=254, blank=True)
    sceg_geo = models.CharField(max_length=10, blank=True)
    tcec_geo = models.CharField(max_length=10, blank=True)
    aec_geo = models.CharField(max_length=10, blank=True)
    acres = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    the_geom = models.MultiPolygonField(srid=-1, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'countyparcelcalhoun'
        app_label='djangoproject'

#Countyparcellexington had 16251 rows.
class Countyparcellexington(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    objectid = models.IntegerField(null=True, blank=True)
    county = models.CharField(max_length=30, blank=True)
    address = models.CharField(max_length=70, blank=True)
    dt_src = models.CharField(max_length=6, blank=True)
    parcel_id = models.CharField(max_length=30, blank=True)
    zip = models.CharField(max_length=254, blank=True)
    acres = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    shape_leng = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    shape_area = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    assignment = models.CharField(max_length=20, blank=True)
    assignme_1 = models.DateField(null=True, blank=True)
    assignme_2 = models.CharField(max_length=254, blank=True)
    sceg_geo = models.CharField(max_length=10, blank=True)
    tcec_geo = models.CharField(max_length=10, blank=True)
    coop_worke = models.CharField(max_length=10, blank=True)
    the_geom = models.MultiPolygonField(srid=-1, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'countyparcellexington'
        app_label='djangoproject'

#Countyparcelorangeburg had 49030 rows.
class Countyparcelorangeburg(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    cmplnn = models.TextField(blank=True)
    cacre = models.TextField(blank=True)
    otext = models.CharField(max_length=17, blank=True)
    omaptxt = models.CharField(max_length=13, blank=True)
    mapblolot = models.CharField(max_length=18, blank=True)
    ownername = models.CharField(max_length=75, blank=True)
    shape_area = models.TextField(blank=True)
    shape_len = models.TextField(blank=True)
    assignment = models.TextField(blank=True)
    assigned = models.CharField(max_length=20, blank=True)
    the_geom = models.MultiPolygonField(srid=-1, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'countyparcelorangeburg'
        app_label='djangoproject'

#DjangoAdminLog had 989 rows.
class DjangoAdminLog(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    action_time = models.DateTimeField()
    user = models.ForeignKey('AuthUser', related_name="DjangoAdminLog_user")
    content_type = models.ForeignKey('DjangoContentType', related_name="DjangoAdminLog_content_type", null=True, blank=True)
    object_id = models.TextField(blank=True)
    object_repr = models.CharField(max_length=200)
    action_flag = models.SmallIntegerField()
    change_message = models.TextField()
    class Meta:
        db_table = u'django_admin_log'
        app_label='djangoproject'

#DjangoContentType had 131 rows.
class DjangoContentType(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=100)
    app_label = models.CharField(max_length=100)
    model = models.CharField(max_length=100)
    class Meta:
        db_table = u'django_content_type'
        app_label='djangoproject'

#DjangoSession had 1001 rows.
class DjangoSession(models.Model):
    using = 'gis'
    session_key = models.CharField(max_length=40, primary_key=True)
    session_data = models.TextField()
    expire_date = models.DateTimeField()
    class Meta:
        db_table = u'django_session'
        app_label='djangoproject'

#DjangoSite had 1 rows.
class DjangoSite(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    domain = models.CharField(max_length=100)
    name = models.CharField(max_length=50)
    class Meta:
        db_table = u'django_site'
        app_label='djangoproject'

#GeometryColumns had 79 rows.
class GeometryColumns(models.Model):
    using = 'gis'
    f_table_catalog = models.CharField(primary_key=True, max_length=256)
    f_table_schema = models.CharField(max_length=256)
    f_table_name = models.CharField(max_length=256)
    f_geometry_column = models.CharField(max_length=256)
    coord_dimension = models.IntegerField()
    srid = models.IntegerField()
    type = models.CharField(max_length=30)
    class Meta:
        db_table = u'geometry_columns'
        app_label='djangoproject'

#Scegprimaryoh had 25685 rows.
class Scegprimaryoh(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    objectid = models.IntegerField(null=True, blank=True)
    the_geom = models.MultiLineStringField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'scegprimaryoh'
        app_label='djangoproject'

#Scegprimaryug had 2887 rows.
class Scegprimaryug(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    objectid = models.IntegerField(null=True, blank=True)
    the_geom = models.MultiLineStringField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'scegprimaryug'
        app_label='djangoproject'

#SpatialRefSys had 3749 rows.
class SpatialRefSys(models.Model):
    using = 'gis'
    srid = models.IntegerField(primary_key=True)
    auth_name = models.CharField(max_length=256, blank=True)
    auth_srid = models.IntegerField(null=True, blank=True)
    srtext = models.CharField(max_length=2048, blank=True)
    proj4text = models.CharField(max_length=2048, blank=True)
    class Meta:
        db_table = u'spatial_ref_sys'
        app_label='djangoproject'

#Substation had 12 rows.
class Coopgissubstation(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, unique=True, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    assembly = models.ForeignKey('Coopgisassembly', related_name="Substation_assembly", null=True, db_column='Assembly_id', blank=True) # Field name made lowercase.
    activeindicator = models.NullBooleanField(null=True, db_column='ActiveIndicator', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substation'
        app_label='djangoproject'

#Substationcircuit had 92 rows.
class Substationcircuit(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.TextField(unique=True)
    circuitnumber = models.IntegerField(unique=True)
    substation = models.ForeignKey('Substation', related_name="Substationcircuit_substation")
    description = models.TextField()
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    amrcircuitname = models.TextField(blank=True)
    amrsubstationidentifier = models.IntegerField(null=True, blank=True)
    amrbusidentifier = models.IntegerField(null=True, blank=True)
    amrfeederidentifier = models.IntegerField(null=True, blank=True)
    class Meta:
        db_table = u'substationcircuit'
        app_label='djangoproject'

#Substationequipment had 228 rows.
class Substationequipment(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    inventorynumber = models.CharField(max_length=250, unique=True, db_column='InventoryNumber', blank=True) # Field name made lowercase.
    catalognumber = models.CharField(max_length=250, db_column='CatalogNumber', blank=True) # Field name made lowercase.
    ratedtransmissionvoltage1 = models.ForeignKey('Coopgisvoltage', related_name="Substationequipment_ratedtransmissionvoltage1", null=True, db_column='RatedTransmissionVoltage1_id', blank=True) # Field name made lowercase.
    ratedtransmissionvoltage2 = models.ForeignKey('Coopgisvoltage', related_name="Substationequipment_ratedtransmissionvoltage2", null=True, db_column='RatedTransmissionVoltage2_id', blank=True) # Field name made lowercase.
    rateddistributionvoltage1 = models.ForeignKey('Coopgisvoltage', related_name="Substationequipment_rateddistributionvoltage1", null=True, db_column='RatedDistributionVoltage1_id', blank=True) # Field name made lowercase.
    rateddistributionvoltage2 = models.ForeignKey('Coopgisvoltage', related_name="Substationequipment_rateddistributionvoltage2", null=True, db_column='RatedDistributionVoltage2_id', blank=True) # Field name made lowercase.
    operatorcontrolvoltage = models.ForeignKey('Coopgisvoltage', related_name="Substationequipment_operatorcontrolvoltage", null=True, db_column='OperatorControlVoltage_id', blank=True) # Field name made lowercase.
    currenttransmissionvoltage = models.ForeignKey('Coopgisvoltage', related_name="Substationequipment_currenttransmissionvoltage", null=True, db_column='CurrentTransmissionVoltage_id', blank=True) # Field name made lowercase.
    currentdistributionvoltage = models.ForeignKey('Coopgisvoltage', related_name="Substationequipment_currentdistributionvoltage", null=True, db_column='CurrentDistributionVoltage_id', blank=True) # Field name made lowercase.
    kvarating = models.FloatField(null=True, db_column='KVARating', blank=True) # Field name made lowercase.
    mvarating = models.FloatField(null=True, db_column='MVARating', blank=True) # Field name made lowercase.
    manufacturer = models.ForeignKey('Coopgiscompany', related_name="Substationequipment_manufacturer", null=True, db_column='Manufacturer_id', blank=True) # Field name made lowercase.
    dateofmanufacture = models.DateField(null=True, db_column='DateOfManufacture', blank=True) # Field name made lowercase.
    impedance = models.FloatField(null=True, db_column='Impedance', blank=True) # Field name made lowercase.
    oilcapacitygallon = models.FloatField(null=True, db_column='OilCapacityGallon', blank=True) # Field name made lowercase.
    weightpound = models.FloatField(null=True, db_column='WeightPound', blank=True) # Field name made lowercase.
    batterychargermanufacturer = models.ForeignKey('Coopgiscompany', related_name="Substationequipment_batterychargermanufacturer", null=True, db_column='BatteryChargerManufacturer_id', blank=True) # Field name made lowercase.
    batterychargerdateofmanufacture = models.DateField(null=True, db_column='BatteryChargerDateOfManufacture', blank=True) # Field name made lowercase.
    batterychargerinputvoltage = models.ForeignKey('Coopgisvoltage', related_name="Substationequipment_batterychargerinputvoltage", null=True, db_column='BatteryChargerInputVoltage_id', blank=True) # Field name made lowercase.
    batterychargeroutputvoltage = models.ForeignKey('Coopgisvoltage', related_name="Substationequipment_batterychargeroutputvoltage", null=True, db_column='BatteryChargerOutputVoltage_id', blank=True) # Field name made lowercase.
    batterychargeracamps = models.FloatField(null=True, db_column='BatteryChargerACAmps', blank=True) # Field name made lowercase.
    batterychargerdcamps = models.FloatField(null=True, db_column='BatteryChargerDCAmps', blank=True) # Field name made lowercase.
    batterychargernumberofcells = models.IntegerField(null=True, db_column='BatteryChargerNumberOfCells', blank=True) # Field name made lowercase.
    batterychargertypeofcells = models.TextField(db_column='BatteryChargerTypeOfCells', blank=True) # Field name made lowercase.
    batterybankbatteryvoltage = models.FloatField(null=True, db_column='BatteryBankBatteryVoltage', blank=True) # Field name made lowercase.
    batterybankbatteryamphours = models.FloatField(null=True, db_column='BatteryBankBatteryAmpHours', blank=True) # Field name made lowercase.
    batterybankbatteryreservecapacity = models.FloatField(null=True, db_column='BatteryBankBatteryReserveCapacity', blank=True) # Field name made lowercase.
    batterybankbatterymodelnumber = models.TextField(db_column='BatteryBankBatteryModelNumber', blank=True) # Field name made lowercase.
    substationequipmentovercurrentrelaytype = models.ForeignKey('Substationequipmentmodeltype', related_name="Substationequipment_substationequipmentovercurrentrelaytype", null=True, db_column='SubstationEquipmentOverCurrentRelayType_id', blank=True) # Field name made lowercase.
    substationequipmentdifferentialrelaytype = models.ForeignKey('Substationequipmentmodeltype', related_name="Substationequipment_substationequipmentdifferentialrelaytype", null=True, db_column='SubstationEquipmentDifferentialRelayType_id', blank=True) # Field name made lowercase.
    substationequipmentregulatorcontrollertype = models.ForeignKey('Substationequipmentmodeltype', related_name="Substationequipment_substationequipmentregulatorcontrollertype", null=True, db_column='SubstationEquipmentRegulatorControllerType_id', blank=True) # Field name made lowercase.
    regulatorcontrollerserialnumber = models.TextField(db_column='RegulatorControllerSerialNumber', blank=True) # Field name made lowercase.
    reclosercontrollertype = models.ForeignKey('Substationequipmentmodeltype', related_name="Substationequipment_reclosercontrollertype", null=True, db_column='RecloserControllerType_id', blank=True) # Field name made lowercase.
    serialnumber = models.CharField(max_length=250, db_column='SerialNumber') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    assembly = models.ForeignKey('Coopgisassembly', related_name="Substationequipment_assembly", null=True, db_column='Assembly_id', blank=True) # Field name made lowercase.
    activeindicator = models.NullBooleanField(null=True, db_column='ActiveIndicator', blank=True) # Field name made lowercase.
    substationequipmenttemplate = models.ForeignKey('Substationequipmenttemplate', related_name="Substationequipment_substationequipmenttemplate", null=True, db_column='SubstationEquipmentTemplate_id', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    substationequipmentmodeltype_id = models.IntegerField(null=True, db_column='SubstationEquipmentModelType_id', blank=True) # Field name made lowercase.
    fanquantity = models.IntegerField(null=True, db_column='FanQuantity', blank=True) # Field name made lowercase.
    currentsubstation_id = models.IntegerField(null=True, db_column='CurrentSubstation_id', blank=True) # Field name made lowercase.
    name = models.TextField(blank=True)
    class Meta:
        db_table = u'substationequipment'
        app_label='djangoproject'

#Substationequipmentcircuitassignment had 275 rows.
class Substationequipmentcircuitassignment(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    substationcircuit = models.ForeignKey('Substationcircuit', related_name="Substationequipmentcircuitassignment_substationcircuit", db_column='SubstationCircuit_id') # Field name made lowercase.
    substationequipment = models.ForeignKey('Substationequipment', related_name="Substationequipmentcircuitassignment_substationequipment", db_column='SubstationEquipment_id') # Field name made lowercase.
    datetime = models.DateTimeField(db_column='DateTime') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationequipmentcircuitassignment'
        app_label='djangoproject'

#Substationequipmentinspection had 5425 rows.
class Substationequipmentinspection(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    substationequipment = models.ForeignKey('Substationequipment', related_name="Substationequipmentinspection_substationequipment", db_column='SubstationEquipment_id') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    createdatetime = models.DateTimeField(db_column='CreateDateTime') # Field name made lowercase.
    createusername = models.TextField(db_column='CreateUserName', blank=True) # Field name made lowercase.
    lastmodifydatetime = models.DateTimeField(db_column='LastModifyDateTime') # Field name made lowercase.
    lastmodifyusername = models.TextField(db_column='LastModifyUserName', blank=True) # Field name made lowercase.
    batterytest = models.ForeignKey('Substationinspectionchoice', related_name="Substationequipmentinspection_batterytest", null=True, db_column='BatteryTest_id', blank=True) # Field name made lowercase.
    batterycharge = models.FloatField(null=True, db_column='BatteryCharge', blank=True) # Field name made lowercase.
    batteryvisual = models.ForeignKey('Substationinspectionchoice', related_name="Substationequipmentinspection_batteryvisual", null=True, db_column='BatteryVisual_id', blank=True) # Field name made lowercase.
    batteryvoltagenormal = models.FloatField(null=True, db_column='BatteryVoltageNormal', blank=True) # Field name made lowercase.
    ground = models.ForeignKey('Substationinspectionchoice', related_name="Substationequipmentinspection_ground", null=True, db_column='Ground_id', blank=True) # Field name made lowercase.
    visual = models.ForeignKey('Substationinspectionchoice', related_name="Substationequipmentinspection_visual", null=True, db_column='Visual_id', blank=True) # Field name made lowercase.
    meterkwh = models.FloatField(null=True, db_column='MeterKWH', blank=True) # Field name made lowercase.
    meterkw = models.FloatField(null=True, db_column='MeterKW', blank=True) # Field name made lowercase.
    metervisual = models.ForeignKey('Substationinspectionchoice', related_name="Substationequipmentinspection_metervisual", null=True, db_column='MeterVisual_id', blank=True) # Field name made lowercase.
    recloseramperagea = models.FloatField(null=True, db_column='RecloserAmperageA', blank=True) # Field name made lowercase.
    recloseramperageb = models.FloatField(null=True, db_column='RecloserAmperageB', blank=True) # Field name made lowercase.
    recloseramperagec = models.FloatField(null=True, db_column='RecloserAmperageC', blank=True) # Field name made lowercase.
    recloseramperageground = models.FloatField(null=True, db_column='RecloserAmperageGround', blank=True) # Field name made lowercase.
    reclosermaxdemanda = models.FloatField(null=True, db_column='RecloserMaxDemandA', blank=True) # Field name made lowercase.
    reclosermaxdemandb = models.FloatField(null=True, db_column='RecloserMaxDemandB', blank=True) # Field name made lowercase.
    reclosermaxdemandc = models.FloatField(null=True, db_column='RecloserMaxDemandC', blank=True) # Field name made lowercase.
    reclosermaxdemandground = models.FloatField(null=True, db_column='RecloserMaxDemandGround', blank=True) # Field name made lowercase.
    recloseroperationsummarya = models.IntegerField(null=True, db_column='RecloserOperationSummaryA', blank=True) # Field name made lowercase.
    recloseroperationsummaryb = models.IntegerField(null=True, db_column='RecloserOperationSummaryB', blank=True) # Field name made lowercase.
    recloseroperationsummaryc = models.IntegerField(null=True, db_column='RecloserOperationSummaryC', blank=True) # Field name made lowercase.
    reclosertargeta = models.FloatField(null=True, db_column='RecloserTargetA', blank=True) # Field name made lowercase.
    reclosertargetb = models.FloatField(null=True, db_column='RecloserTargetB', blank=True) # Field name made lowercase.
    reclosertargetc = models.FloatField(null=True, db_column='RecloserTargetC', blank=True) # Field name made lowercase.
    reclosertargetground = models.FloatField(null=True, db_column='RecloserTargetGround', blank=True) # Field name made lowercase.
    regulatordraghandpositionminimum = models.FloatField(null=True, db_column='RegulatorDragHandPositionMinimum', blank=True) # Field name made lowercase.
    regulatordraghandpositionmaximum = models.FloatField(null=True, db_column='RegulatorDragHandPositionMaximum', blank=True) # Field name made lowercase.
    regulatorvolthigh = models.FloatField(null=True, db_column='RegulatorVoltHigh', blank=True) # Field name made lowercase.
    regulatorvoltlow = models.FloatField(null=True, db_column='RegulatorVoltLow', blank=True) # Field name made lowercase.
    regulatorvoltcurrent = models.FloatField(null=True, db_column='RegulatorVoltCurrent', blank=True) # Field name made lowercase.
    regulatormaxamp = models.FloatField(null=True, db_column='RegulatorMaxAmp', blank=True) # Field name made lowercase.
    operationcounter = models.IntegerField(null=True, db_column='OperationCounter', blank=True) # Field name made lowercase.
    surgeprotectorvisual = models.ForeignKey('Substationinspectionchoice', related_name="Substationequipmentinspection_surgeprotectorvisual", null=True, db_column='SurgeProtectorVisual_id', blank=True) # Field name made lowercase.
    transformeroilleak = models.ForeignKey('Substationinspectionchoice', related_name="Substationequipmentinspection_transformeroilleak", null=True, db_column='TransformerOilLeak_id', blank=True) # Field name made lowercase.
    transformeroillevel = models.ForeignKey('Substationinspectionchoice', related_name="Substationequipmentinspection_transformeroillevel", null=True, db_column='TransformerOilLevel_id', blank=True) # Field name made lowercase.
    transformeroiltemperaturecurrent = models.FloatField(null=True, db_column='TransformerOilTemperatureCurrent', blank=True) # Field name made lowercase.
    transformeroilvisual = models.ForeignKey('Substationinspectionchoice', related_name="Substationequipmentinspection_transformeroilvisual", null=True, db_column='TransformerOilVisual_id', blank=True) # Field name made lowercase.
    transformerwindingtemperaturemaximum = models.FloatField(db_column='TransformerWindingTemperatureMaximum') # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    regulatordraghandpositioncurrent = models.FloatField(null=True, db_column='RegulatorDragHandPositionCurrent', blank=True) # Field name made lowercase.
    transformernitrogenpressure = models.FloatField(null=True, db_column='TransformerNitrogenPressure', blank=True) # Field name made lowercase.
    transformeroiltemperaturemaximum = models.FloatField(null=True, db_column='TransformerOilTemperatureMaximum', blank=True) # Field name made lowercase.
    transformerwindingtemperaturecurrent = models.FloatField(null=True, db_column='TransformerWindingTemperatureCurrent', blank=True) # Field name made lowercase.
    mechanismcharge_id = models.IntegerField(null=True, db_column='MechanismCharge_id', blank=True) # Field name made lowercase.
    fanworkingvisual_id = models.IntegerField(null=True, db_column='FanWorkingVisual_id', blank=True) # Field name made lowercase.
    batteryvoltagetest = models.FloatField(null=True, db_column='BatteryVoltageTest', blank=True) # Field name made lowercase.
    demandampb = models.FloatField(null=True, db_column='DemandAmpB', blank=True) # Field name made lowercase.
    demandampa = models.FloatField(null=True, db_column='DemandAmpA', blank=True) # Field name made lowercase.
    demandampc = models.FloatField(null=True, db_column='DemandAmpC', blank=True) # Field name made lowercase.
    overcurrenttrip = models.FloatField(null=True, db_column='OverCurrentTrip', blank=True) # Field name made lowercase.
    breakercounter = models.IntegerField(null=True, db_column='BreakerCounter', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationequipmentinspection'
        app_label='djangoproject'

#Substationequipmentmodeltype had 34 rows.
class Substationequipmentmodeltype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, unique=True, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    manufacturer = models.ForeignKey('Coopgiscompany', related_name="Substationequipmentmodeltype_manufacturer", null=True, db_column='Manufacturer_id', blank=True) # Field name made lowercase.
    transformerindicator = models.NullBooleanField(null=True, db_column='TransformerIndicator', blank=True) # Field name made lowercase.
    regulatorindicator = models.NullBooleanField(null=True, db_column='RegulatorIndicator', blank=True) # Field name made lowercase.
    regulatorcontrollerindicator = models.NullBooleanField(null=True, db_column='RegulatorControllerIndicator', blank=True) # Field name made lowercase.
    transmissionovercurrentrelayindicator = models.NullBooleanField(null=True, db_column='TransmissionOverCurrentRelayIndicator', blank=True) # Field name made lowercase.
    recloserindicator = models.NullBooleanField(null=True, db_column='RecloserIndicator', blank=True) # Field name made lowercase.
    reclosercontrollerindicator = models.NullBooleanField(null=True, db_column='RecloserControllerIndicator', blank=True) # Field name made lowercase.
    circuitswitcherindicator = models.NullBooleanField(null=True, db_column='CircuitSwitcherIndicator', blank=True) # Field name made lowercase.
    batterybankindicator = models.NullBooleanField(null=True, db_column='BatteryBankIndicator', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationequipmentmodeltype'
        app_label='djangoproject'

#Substationequipmentsetting had 10 rows.
class Substationequipmentsetting(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.TextField(unique=True, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationequipmentsetting'
        app_label='djangoproject'

#Substationequipmentsettingassignment had 37 rows.
class Substationequipmentsettingassignment(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    substationequipment_id = models.IntegerField(db_column='SubstationEquipment_id') # Field name made lowercase.
    substationequipmentsetting = models.ForeignKey('Substationequipmentsetting', related_name="Substationequipmentsettingassignment_substationequipmentsetting", db_column='SubstationEquipmentSetting_id') # Field name made lowercase.
    datetime = models.DateTimeField(db_column='DateTime') # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationequipmentsettingassignment'
        app_label='djangoproject'

#Substationequipmentsubstationassignment had 241 rows.
class Substationequipmentsubstationassignment(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    substation = models.ForeignKey('Substation', related_name="Substationequipmentsubstationassignment_substation", db_column='Substation_id') # Field name made lowercase.
    substationequipment_id = models.IntegerField(db_column='SubstationEquipment_id') # Field name made lowercase.
    datetime = models.DateTimeField(db_column='DateTime') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationequipmentsubstationassignment'
        app_label='djangoproject'

#Substationequipmenttemplate had 10 rows.
class Substationequipmenttemplate(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, unique=True, db_column='Name') # Field name made lowercase.
    descriptionorder = models.TextField(db_column='DescriptionOrder', blank=True) # Field name made lowercase.
    batterytestorder = models.FloatField(db_column='BatteryTestOrder') # Field name made lowercase.
    batteryvoltagenormalorder = models.FloatField(db_column='BatteryVoltageNormalOrder') # Field name made lowercase.
    batterychargeorder = models.FloatField(db_column='BatteryChargeOrder') # Field name made lowercase.
    batteryvisualorder = models.FloatField(db_column='BatteryVisualOrder') # Field name made lowercase.
    groundorder = models.FloatField(db_column='GroundOrder') # Field name made lowercase.
    visualorder = models.FloatField(db_column='VisualOrder') # Field name made lowercase.
    batteryvoltagetestorder = models.FloatField(db_column='BatteryVoltageTestOrder') # Field name made lowercase.
    meterkwhorder = models.FloatField(db_column='MeterKWHOrder') # Field name made lowercase.
    meterkworder = models.FloatField(db_column='MeterKWOrder') # Field name made lowercase.
    recloseramperageaorder = models.FloatField(db_column='RecloserAmperageAOrder') # Field name made lowercase.
    recloseramperageborder = models.FloatField(db_column='RecloserAmperageBOrder') # Field name made lowercase.
    recloseramperagecorder = models.FloatField(db_column='RecloserAmperageCOrder') # Field name made lowercase.
    recloseramperagegroundorder = models.FloatField(db_column='RecloserAmperageGroundOrder') # Field name made lowercase.
    reclosermaxdemandaorder = models.FloatField(db_column='RecloserMaxDemandAOrder') # Field name made lowercase.
    reclosermaxdemandborder = models.FloatField(db_column='RecloserMaxDemandBOrder') # Field name made lowercase.
    reclosermaxdemandcorder = models.FloatField(db_column='RecloserMaxDemandCOrder') # Field name made lowercase.
    reclosermaxdemandgroundorder = models.FloatField(db_column='RecloserMaxDemandGroundOrder') # Field name made lowercase.
    recloseroperationcounterorder = models.FloatField(db_column='RecloserOperationCounterOrder') # Field name made lowercase.
    recloseroperationsummaryaorder = models.FloatField(db_column='RecloserOperationSummaryAOrder') # Field name made lowercase.
    recloseroperationsummaryborder = models.FloatField(db_column='RecloserOperationSummaryBOrder') # Field name made lowercase.
    recloseroperationsummarycorder = models.FloatField(db_column='RecloserOperationSummaryCOrder') # Field name made lowercase.
    reclosertargetaorder = models.FloatField(db_column='RecloserTargetAOrder') # Field name made lowercase.
    reclosertargetborder = models.FloatField(db_column='RecloserTargetBOrder') # Field name made lowercase.
    reclosertargetcorder = models.FloatField(db_column='RecloserTargetCOrder') # Field name made lowercase.
    reclosertargetgroundorder = models.FloatField(db_column='RecloserTargetGroundOrder') # Field name made lowercase.
    regulatordraghandpositionminimumorder = models.FloatField(db_column='RegulatorDragHandPositionMinimumOrder') # Field name made lowercase.
    regulatordraghandpositionmaximumorder = models.FloatField(db_column='RegulatorDragHandPositionMaximumOrder') # Field name made lowercase.
    regulatorvoltcurrentorder = models.FloatField(db_column='RegulatorVoltCurrentOrder') # Field name made lowercase.
    regulatorvoltloworder = models.FloatField(db_column='RegulatorVoltLowOrder') # Field name made lowercase.
    regulatorvolthighorder = models.FloatField(db_column='RegulatorVoltHighOrder') # Field name made lowercase.
    regulatormaxamporder = models.FloatField(db_column='RegulatorMaxAmpOrder') # Field name made lowercase.
    operationcounterorder = models.FloatField(db_column='OperationCounterOrder') # Field name made lowercase.
    surgeprotectorvisualorder = models.FloatField(db_column='SurgeProtectorVisualOrder') # Field name made lowercase.
    transformeroilleakorder = models.FloatField(db_column='TransformerOilLeakOrder') # Field name made lowercase.
    transformeroillevelorder = models.FloatField(db_column='TransformerOilLevelOrder') # Field name made lowercase.
    transformeroiltemperaturecurrentorder = models.FloatField(db_column='TransformerOilTemperatureCurrentOrder') # Field name made lowercase.
    transformernitrogenpressureorder = models.FloatField(db_column='TransformerNitrogenPressureOrder') # Field name made lowercase.
    transformeroilvisualorder = models.FloatField(db_column='TransformerOilVisualOrder') # Field name made lowercase.
    transformerwindingtemperaturecurrentorder = models.FloatField(db_column='TransformerWindingTemperatureCurrentOrder') # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    activeindicator = models.NullBooleanField(null=True, db_column='ActiveIndicator', blank=True) # Field name made lowercase.
    regulatordraghandpositioncurrentorder = models.FloatField(null=True, db_column='RegulatorDragHandPositionCurrentOrder', blank=True) # Field name made lowercase.
    transformeroiltemperaturemaximumorder = models.FloatField(null=True, db_column='TransformerOilTemperatureMaximumOrder', blank=True) # Field name made lowercase.
    transformerwindingtemperaturemaximumorder = models.FloatField(null=True, db_column='TransformerWindingTemperatureMaximumOrder', blank=True) # Field name made lowercase.
    mechanismchargeorder = models.FloatField(null=True, db_column='MechanismChargeOrder', blank=True) # Field name made lowercase.
    fanworkingvisualorder = models.FloatField(null=True, db_column='FanWorkingVisualOrder', blank=True) # Field name made lowercase.
    demandampaorder = models.FloatField(null=True, db_column='DemandAmpAOrder', blank=True) # Field name made lowercase.
    demandampborder = models.FloatField(null=True, db_column='DemandAmpBOrder', blank=True) # Field name made lowercase.
    demandampcorder = models.FloatField(null=True, db_column='DemandAmpCOrder', blank=True) # Field name made lowercase.
    overcurrenttriporder = models.FloatField(null=True, db_column='OverCurrentTripOrder', blank=True) # Field name made lowercase.
    breakercounterorder = models.FloatField(null=True, db_column='BreakerCounterOrder', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationequipmenttemplate'
        app_label='djangoproject'

#Substationinspection had 238 rows.
class Substationinspection(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    substation = models.ForeignKey('Substation', related_name="Substationinspection_substation", db_column='Substation_id') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    createdatetime = models.DateTimeField(db_column='CreateDateTime') # Field name made lowercase.
    createusername = models.TextField(db_column='CreateUserName', blank=True) # Field name made lowercase.
    lastmodifydatetime = models.DateTimeField(db_column='LastModifyDateTime') # Field name made lowercase.
    lastmodifyusername = models.TextField(db_column='LastModifyUserName', blank=True) # Field name made lowercase.
    dynaspherevisual = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_dynaspherevisual", null=True, db_column='DynasphereVisual_id', blank=True) # Field name made lowercase.
    brokenporcelain = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_brokenporcelain", null=True, db_column='BrokenPorcelain_id', blank=True) # Field name made lowercase.
    circuitidentifier = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_circuitidentifier", null=True, db_column='CircuitIdentifier_id', blank=True) # Field name made lowercase.
    surgeprotectorvisual = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_surgeprotectorvisual", null=True, db_column='SurgeProtectorVisual_id', blank=True) # Field name made lowercase.
    debris = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_debris", null=True, db_column='Debris_id', blank=True) # Field name made lowercase.
    fencegroundlevel = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_fencegroundlevel", null=True, db_column='FenceGroundLevel_id', blank=True) # Field name made lowercase.
    fenceoverallcondition = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_fenceoverallcondition", null=True, db_column='FenceOverallCondition_id', blank=True) # Field name made lowercase.
    fencesecuritywire = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_fencesecuritywire", null=True, db_column='FenceSecurityWire_id', blank=True) # Field name made lowercase.
    fencewarningsign = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_fencewarningsign", null=True, db_column='FenceWarningSign_id', blank=True) # Field name made lowercase.
    gateground = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_gateground", null=True, db_column='GateGround_id', blank=True) # Field name made lowercase.
    gatelock = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_gatelock", null=True, db_column='GateLock_id', blank=True) # Field name made lowercase.
    gatewarningsign = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_gatewarningsign", null=True, db_column='GateWarningSign_id', blank=True) # Field name made lowercase.
    materialstore = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_materialstore", null=True, db_column='MaterialStore_id', blank=True) # Field name made lowercase.
    spillpreventionplan = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_spillpreventionplan", null=True, db_column='SpillPreventionPlan_id', blank=True) # Field name made lowercase.
    amrvisual = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_amrvisual", null=True, db_column='AMRVisual_id', blank=True) # Field name made lowercase.
    vegetation = models.ForeignKey('Substationinspectionchoice', related_name="Substationinspection_vegetation", null=True, db_column='Vegetation_id', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    batterycabinetvisual_id = models.IntegerField(null=True, db_column='BatteryCabinetVisual_id', blank=True) # Field name made lowercase.
    dynasphereoperationindicator = models.NullBooleanField(null=True, db_column='DynasphereOperationIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationinspection'
        app_label='djangoproject'

#Substationinspectionchoice had 5 rows.
class Substationinspectionchoice(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, unique=True, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    activeindicator = models.NullBooleanField(null=True, db_column='ActiveIndicator', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationinspectionchoice'
        app_label='djangoproject'

#Transformerbank had 168 rows.
class Transformerbank(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    banktype = models.ForeignKey('Transformerbanktype', related_name="Transformerbank_banktype", null=True, db_column='banktype', blank=True)
    description = models.TextField(blank=True)
    station = models.ForeignKey('Coopgisstation', related_name="Transformerbank_station", db_column='station')
    maximumtransformerdistance = models.FloatField(null=True, blank=True)
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    class Meta:
        db_table = u'transformerbank'
        app_label='djangoproject'

#Transformerbanktype had 2 rows.
class Transformerbanktype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.TextField(unique=True)
    description = models.TextField(blank=True)
    class Meta:
        db_table = u'transformerbanktype'
        app_label='djangoproject'

#Transmissioneasement had 651 rows.
class Transmissioneasement(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    objectid = models.BigIntegerField(null=True, blank=True)
    project_na = models.CharField(max_length=35, blank=True)
    row_width = models.CharField(max_length=6, blank=True)
    ease_numbe = models.CharField(max_length=12, blank=True)
    begin_stat = models.CharField(max_length=13, blank=True)
    end_statio = models.CharField(max_length=13, blank=True)
    ease_plat = models.CharField(max_length=13, blank=True)
    ease_plat1 = models.DateField(null=True, blank=True)
    plan_profi = models.CharField(max_length=13, blank=True)
    plan_pro_1 = models.DateField(null=True, blank=True)
    plan_pro_2 = models.CharField(max_length=4, blank=True)
    easement_t = models.CharField(max_length=1, blank=True)
    grantor = models.CharField(max_length=200, blank=True)
    grantee = models.CharField(max_length=22, blank=True)
    grantee_in = models.CharField(max_length=12, blank=True)
    grantee__1 = models.DateField(null=True, blank=True)
    grantee_pl = models.DateField(null=True, blank=True)
    grantee__2 = models.CharField(max_length=7, blank=True)
    grantee__3 = models.CharField(max_length=11, blank=True)
    scpsa_doc = models.CharField(max_length=30, blank=True)
    scpsa_bk = models.CharField(max_length=5, blank=True)
    scpsa_doc1 = models.CharField(max_length=10, blank=True)
    scpsa_do_1 = models.CharField(max_length=11, blank=True)
    line_id = models.CharField(max_length=7, blank=True)
    grantee__4 = models.CharField(max_length=15, blank=True)
    grantee__5 = models.CharField(max_length=15, blank=True)
    shape_area = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    shape_len = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    the_geom = models.MultiPolygonField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'transmissioneasement'
        app_label='djangoproject'

#Transmissionpole had 1708 rows.
class Transmissionpole(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    structure = models.IntegerField(null=True, blank=True)
    line_id = models.CharField(max_length=7, blank=True)
    height = models.SmallIntegerField(null=True, blank=True)
    poleid = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    old_str_no = models.CharField(max_length=8, blank=True)
    line_id_1 = models.CharField(max_length=7, blank=True)
    descriptio = models.CharField(max_length=20, blank=True)
    structur_1 = models.CharField(max_length=7, blank=True)
    secondary = models.CharField(max_length=7, blank=True)
    underbui_1 = models.CharField(max_length=7, blank=True)
    foreman_id = models.CharField(max_length=2, blank=True)
    str_dwg_pa = models.CharField(max_length=100, blank=True)
    str_x = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    str_y = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    fault_indi = models.CharField(max_length=3, blank=True)
    ckt_type = models.CharField(max_length=1, blank=True)
    fo_attache = models.CharField(max_length=1, blank=True)
    the_geom = models.PointField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'transmissionpole'
        app_label='djangoproject'

#Transmissionspan had 1501 rows.
class Transmissionspan(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    ckt_con_ty = models.CharField(max_length=1, blank=True)
    line_id = models.CharField(max_length=7, blank=True)
    conductor = models.CharField(max_length=17, blank=True)
    shieldwire = models.CharField(max_length=25, blank=True)
    shieldwi_1 = models.CharField(max_length=25, blank=True)
    from_asset = models.CharField(max_length=9, blank=True)
    to_asset = models.CharField(max_length=9, blank=True)
    plan_profi = models.CharField(max_length=13, blank=True)
    plan_pro_1 = models.CharField(max_length=13, blank=True)
    plan_pro_2 = models.CharField(max_length=3, blank=True)
    descriptio = models.CharField(max_length=50, blank=True)
    operating = models.SmallIntegerField(null=True, blank=True)
    feeder_des = models.CharField(max_length=3, blank=True)
    line_milea = models.DecimalField(null=True, max_digits=65535, decimal_places=65535, blank=True)
    the_geom = models.MultiLineStringField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'transmissionspan'
        app_label='djangoproject'

#Transmissionsubstation had 17 rows.
class Transmissionsubstation(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    objectid = models.BigIntegerField(null=True, blank=True)
    substation = models.CharField(max_length=28, blank=True)
    sub_code = models.SmallIntegerField(null=True, blank=True)
    planarea = models.CharField(max_length=9, blank=True)
    bus = models.SmallIntegerField(null=True, blank=True)
    custvolt = models.CharField(max_length=14, blank=True)
    coop_area = models.CharField(max_length=29, blank=True)
    latitude = models.FloatField(null=True, blank=True)
    longitude = models.FloatField(null=True, blank=True)
    x_coord = models.IntegerField(null=True, blank=True)
    y_coord = models.IntegerField(null=True, blank=True)
    roadname = models.CharField(max_length=50, blank=True)
    service_ty = models.CharField(max_length=1, blank=True)
    the_geom = models.PointField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'transmissionsubstation'
        app_label='djangoproject'

#Transmissionswitch had 50 rows.
class Transmissionswitch(models.Model):
    using = 'gis'
    gid = models.IntegerField(primary_key=True)
    objectid = models.BigIntegerField(null=True, blank=True)
    structure = models.BigIntegerField(null=True, blank=True)
    line_id = models.CharField(max_length=7, blank=True)
    switch_num = models.CharField(max_length=6, blank=True)
    line_side = models.CharField(max_length=51, blank=True)
    switch_typ = models.CharField(max_length=20, blank=True)
    switch_des = models.CharField(max_length=6, blank=True)
    switch_cap = models.SmallIntegerField(null=True, blank=True)
    automatic = models.CharField(max_length=1, blank=True)
    mo_type = models.CharField(max_length=16, blank=True)
    the_geom = models.PointField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'transmissionswitch'
        app_label='djangoproject'

#Vegetationmanagercrew had 6 rows.
class Vegetationmanagercrew(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    workerquantity = models.IntegerField(null=True, db_column='WorkerQuantity', blank=True) # Field name made lowercase.
    company = models.ForeignKey('Coopgiscompany', related_name="Vegetationmanagercrew_company", db_column='Company_id') # Field name made lowercase.
    workstartdate = models.DateField(null=True, db_column='WorkStartDate', blank=True) # Field name made lowercase.
    workenddate = models.DateField(null=True, db_column='WorkEndDate', blank=True) # Field name made lowercase.
    activeindicator = models.NullBooleanField(null=True, db_column='ActiveIndicator', blank=True) # Field name made lowercase.
    radionumber = models.CharField(max_length=250, db_column='RadioNumber', blank=True) # Field name made lowercase.
    residesonserverindicator = models.BooleanField(db_column='ResidesOnServerIndicator') # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'vegetationmanagercrew'
        app_label='djangoproject'

#Vegetationmanagerjob had 1 rows.
class Vegetationmanagerjob(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    description = models.TextField(db_column='Description') # Field name made lowercase.
    vegetationmanagercrew = models.ForeignKey('Vegetationmanagercrew', related_name="Vegetationmanagerjob_vegetationmanagercrew", null=True, db_column='VegetationManagerCrew_id', blank=True) # Field name made lowercase.
    workstartdate = models.DateField(null=True, db_column='WorkStartDate', blank=True) # Field name made lowercase.
    workenddate = models.DateField(null=True, db_column='WorkEndDate', blank=True) # Field name made lowercase.
    createdate = models.DateField(null=True, db_column='CreateDate', blank=True) # Field name made lowercase.
    vegetationmanagerjobstatus = models.ForeignKey('Vegetationmanagerjobstatus', related_name="Vegetationmanagerjob_vegetationmanagerjobstatus", db_column='VegetationManagerJobStatus_id') # Field name made lowercase.
    hoursworkedquantity = models.FloatField(null=True, db_column='HoursWorkedQuantity', blank=True) # Field name made lowercase.
    widthinfeet = models.IntegerField(null=True, db_column='WidthInFeet', blank=True) # Field name made lowercase.
    residesonserverindicator = models.BooleanField(db_column='ResidesOnServerIndicator') # Field name made lowercase.
    activeindicator = models.NullBooleanField(null=True, db_column='ActiveIndicator', blank=True) # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    stakerworkorder = models.ForeignKey('Coopgisstakerworkorder', related_name="Vegetationmanagerjob_stakerworkorder", null=True, db_column='StakerWorkOrder_id', blank=True) # Field name made lowercase.
    substationname = models.CharField(max_length=250, db_column='SubstationName', blank=True) # Field name made lowercase.
    circuitname = models.CharField(max_length=250, db_column='CircuitName', blank=True) # Field name made lowercase.
    trimrightofwayindicator = models.NullBooleanField(null=True, db_column='TrimRightOfWayIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'vegetationmanagerjob'
        app_label='djangoproject'

#Vegetationmanagerjobspan had 2410 rows.
class Vegetationmanagerjobspan(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    widthinfeet = models.FloatField(null=True, db_column='WidthInFeet', blank=True) # Field name made lowercase.
    vegetationmanagerjob = models.ForeignKey('Vegetationmanagerjob', related_name="Vegetationmanagerjobspan_vegetationmanagerjob", db_column='VegetationManagerJob_id') # Field name made lowercase.
    spanid = models.IntegerField(db_column='Spanid') # Field name made lowercase.
    workcompleteddate = models.DateField(null=True, db_column='WorkCompletedDate', blank=True) # Field name made lowercase.
    residesonserverindicator = models.BooleanField(db_column='ResidesOnServerIndicator') # Field name made lowercase.
    symbologyjobyear = models.CharField(max_length=250, blank=True)
    symbologycrew = models.CharField(max_length=250, blank=True)
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    the_geom = models.LineStringField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'vegetationmanagerjobspan'
        app_label='djangoproject'

#Vegetationmanagerjobstatus had 4 rows.
class Vegetationmanagerjobstatus(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    residesonserverindicator = models.BooleanField(db_column='ResidesOnServerIndicator') # Field name made lowercase.
    createcommand_id = models.IntegerField(null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'vegetationmanagerjobstatus'
        app_label='djangoproject'

#Warehousemeterinspectionchoice had 5 rows.
class Warehousemeterinspectionchoice(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, unique=True, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    activeindicator = models.NullBooleanField(null=True, db_column='ActiveIndicator', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'warehousemeterinspectionchoice'
        app_label='djangoproject'

#Warehousemeterinventorycheckin had 2455 rows.
class Warehousemeterinventorycheckin(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    meternumber = models.TextField(db_column='MeterNumber') # Field name made lowercase.
    meterdcsinumber = models.TextField(db_column='MeterDCSINumber') # Field name made lowercase.
    warehousemeterinspectionchoice = models.ForeignKey('Warehousemeterinspectionchoice', related_name="Warehousemeterinventorycheckin_warehousemeterinspectionchoice", null=True, db_column='WarehouseMeterInspectionChoice_id', blank=True) # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    location = models.TextField(db_column='Location', blank=True) # Field name made lowercase.
    junkindicator = models.NullBooleanField(null=True, db_column='JunkIndicator', blank=True) # Field name made lowercase.
    checkindatetime = models.DateTimeField(null=True, db_column='CheckInDateTime', blank=True) # Field name made lowercase.
    checkoutdatetime = models.DateTimeField(null=True, db_column='CheckOutDateTime', blank=True) # Field name made lowercase.
    inspectiondatetime = models.DateTimeField(null=True, db_column='InspectionDateTime', blank=True) # Field name made lowercase.
    junkdatetime = models.DateTimeField(null=True, db_column='JunkDateTime', blank=True) # Field name made lowercase.
    residesonserverindicator = models.BooleanField(db_column='ResidesOnServerIndicator') # Field name made lowercase.
    class Meta:
        db_table = u'warehousemeterinventorycheckin'
        app_label='djangoproject'

#******************************************************
#******************************************************
#******************************************************
#Entries Below this point had 0 rows at the time the models file was created.

#******************************************************
#******************************************************
#******************************************************

#AuthMessage had 0 rows.
class AuthMessage(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    user = models.ForeignKey('AuthUser', related_name="AuthMessage_user")
    message = models.TextField()
    class Meta:
        db_table = u'auth_message'
        app_label='djangoproject'

#Coopgisboarddistrictedge had 0 rows.
class Coopgisboarddistrictedge(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    createcommand = models.ForeignKey('Coopgiscommand', related_name="Coopgisboarddistrictedge_createcommand", null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    the_geom = models.LineStringField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisboarddistrictedge'
        app_label='djangoproject'

#Coopgisboarddistrictpoint had 0 rows.
class Coopgisboarddistrictpoint(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250)
    description = models.TextField(db_column='Description') # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    createcommand = models.ForeignKey('Coopgiscommand', related_name="Coopgisboarddistrictpoint_createcommand", null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisboarddistrictpoint'
        app_label='djangoproject'

#Coopgisciscompatibleunit had 0 rows.
class Coopgisciscompatibleunit(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, unique=True, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    prefixcode = models.CharField(max_length=250, db_column='PrefixCode') # Field name made lowercase.
    class Meta:
        db_table = u'coopgisciscompatibleunit'
        app_label='djangoproject'

#Coopgiscistransaction had 0 rows.
class Coopgiscistransaction(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    content = models.TextField(db_column='Content') # Field name made lowercase.
    cistransactiontype = models.ForeignKey('Coopgiscistransactiontype', related_name="Coopgiscistransaction_cistransactiontype", db_column='CISTransactionType_id') # Field name made lowercase.
    outboundindicator = models.NullBooleanField(null=True, db_column='OutboundIndicator', blank=True) # Field name made lowercase.
    inboundindicator = models.NullBooleanField(null=True, db_column='InboundIndicator', blank=True) # Field name made lowercase.
    receiveddatetime = models.DateTimeField(null=True, db_column='ReceivedDateTime', blank=True) # Field name made lowercase.
    sentdatetime = models.DateTimeField(null=True, db_column='SentDateTime', blank=True) # Field name made lowercase.
    sentindicator = models.NullBooleanField(null=True, db_column='SentIndicator', blank=True) # Field name made lowercase.
    processedindicator = models.NullBooleanField(null=True, db_column='ProcessedIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgiscistransaction'
        app_label='djangoproject'

#Coopgiscistransactiontype had 0 rows.
class Coopgiscistransactiontype(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgiscistransactiontype'
        app_label='djangoproject'

#Coopgiscity had 0 rows.
class Coopgiscity(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    the_geom = models.PolygonField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgiscity'
        app_label='djangoproject'

#Coopgiscompatibleunitcategory had 0 rows.
class Coopgiscompatibleunitcategory(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgiscompatibleunitcategory'
        app_label='djangoproject'

#Coopgisconditionassignment had 0 rows.
class Coopgisconditionassignment(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    condition_id = models.IntegerField(db_column='Condition_id') # Field name made lowercase.
    createdatetime = models.DateTimeField(db_column='CreateDateTime') # Field name made lowercase.
    createusername = models.TextField(db_column='CreateUserName') # Field name made lowercase.
    class Meta:
        db_table = u'coopgisconditionassignment'
        app_label='djangoproject'

#Coopgisconditionreport had 0 rows.
class Coopgisconditionreport(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    priorityimmediateindicator = models.NullBooleanField(null=True, db_column='PriorityImmediateIndicator', blank=True) # Field name made lowercase.
    priorityasapindicator = models.NullBooleanField(null=True, db_column='PriorityASAPIndicator', blank=True) # Field name made lowercase.
    priorityroutineindicator = models.NullBooleanField(null=True, db_column='PriorityRoutineIndicator', blank=True) # Field name made lowercase.
    priorityeverythingfixedmaintenanceonlyindicator = models.NullBooleanField(null=True, db_column='PriorityEverythingFixedMaintenanceOnlyIndicator', blank=True) # Field name made lowercase.
    priorityeverythingokinspectiononlyindicator = models.NullBooleanField(null=True, db_column='PriorityEverythingOkInspectionOnlyIndicator', blank=True) # Field name made lowercase.
    priorityvegetationneedsattentionindicator = models.NullBooleanField(null=True, db_column='PriorityVegetationNeedsAttentionIndicator', blank=True) # Field name made lowercase.
    personreporting = models.TextField(db_column='PersonReporting', blank=True) # Field name made lowercase.
    datetimereported = models.DateTimeField(null=True, db_column='DateTimeReported', blank=True) # Field name made lowercase.
    receivedbyoperationsindicator = models.NullBooleanField(null=True, db_column='ReceivedByOperationsIndicator', blank=True) # Field name made lowercase.
    datetimereceivedbyoperations = models.DateTimeField(null=True, db_column='DateTimeReceivedByOperations', blank=True) # Field name made lowercase.
    mapnumber = models.CharField(max_length=250, db_column='MapNumber', blank=True) # Field name made lowercase.
    stationidentifier = models.CharField(max_length=250, db_column='StationIdentifier', blank=True) # Field name made lowercase.
    tagnumber = models.CharField(max_length=250, db_column='TagNumber', blank=True) # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    workordernumber = models.CharField(max_length=250, db_column='WorkOrderNumber', blank=True) # Field name made lowercase.
    workremarks = models.TextField(db_column='WorkRemarks', blank=True) # Field name made lowercase.
    workperformedby = models.TextField(db_column='WorkPerformedBy', blank=True) # Field name made lowercase.
    workhours = models.FloatField(null=True, db_column='WorkHours', blank=True) # Field name made lowercase.
    workdate = models.DateField(null=True, db_column='WorkDate', blank=True) # Field name made lowercase.
    workcompletedindicator = models.NullBooleanField(null=True, db_column='WorkCompletedIndicator', blank=True) # Field name made lowercase.
    worknotcompletedindicator = models.NullBooleanField(null=True, db_column='WorkNotCompletedIndicator', blank=True) # Field name made lowercase.
    worknotcompleteddescription = models.TextField(db_column='WorkNotCompletedDescription', blank=True) # Field name made lowercase.
    workforeman = models.TextField(db_column='WorkForeman', blank=True) # Field name made lowercase.
    workforemansignoffindicator = models.NullBooleanField(null=True, db_column='WorkForemanSignoffIndicator', blank=True) # Field name made lowercase.
    workforemansignoffdatetime = models.DateTimeField(null=True, db_column='WorkForemanSignoffDateTime', blank=True) # Field name made lowercase.
    reviewindicator = models.NullBooleanField(null=True, db_column='ReviewIndicator', blank=True) # Field name made lowercase.
    reviewadditionalattentionneededindicator = models.NullBooleanField(null=True, db_column='ReviewAdditionalAttentionNeededIndicator', blank=True) # Field name made lowercase.
    reviewcomments = models.TextField(db_column='ReviewComments', blank=True) # Field name made lowercase.
    reviewusername = models.TextField(db_column='ReviewUserName', blank=True) # Field name made lowercase.
    reviewdatetime = models.DateTimeField(null=True, db_column='ReviewDateTime', blank=True) # Field name made lowercase.
    deletedindicator = models.NullBooleanField(null=True, db_column='DeletedIndicator', blank=True) # Field name made lowercase.
    createdatetime = models.DateTimeField(null=True, db_column='CreateDateTime', blank=True) # Field name made lowercase.
    createusername = models.TextField(db_column='CreateUserName', blank=True) # Field name made lowercase.
    lastmodifydatetime = models.DateTimeField(null=True, db_column='LastModifyDateTime', blank=True) # Field name made lowercase.
    lastmodifyusername = models.TextField(db_column='LastModifyUserName', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisconditionreport'
        app_label='djangoproject'

#Coopgiscurrentselection had 0 rows.
class Coopgiscurrentselection(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    ipaddress = models.GenericIPAddressField(db_column='IPAddress') # Field name made lowercase.
    station_id = models.IntegerField(null=True, db_column='Station_id', blank=True) # Field name made lowercase.
    span_id = models.IntegerField(null=True, db_column='Span_id', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgiscurrentselection'
        app_label='djangoproject'

#Coopgisgpstrace had 0 rows.
class Coopgisgpstrace(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    order = models.IntegerField(unique=True, db_column='Order') # Field name made lowercase.
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisgpstrace'
        app_label='djangoproject'

#Coopgislandmarkpoint had 0 rows.
class Coopgislandmarkpoint(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250)
    description = models.TextField()
    landmarktype = models.ForeignKey('Coopgislandmarktype', related_name="Coopgislandmarkpoint_landmarktype", null=True, db_column='LandmarkType_id', blank=True) # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, blank=True)
    createcommand = models.ForeignKey('Coopgiscommand', related_name="Coopgislandmarkpoint_createcommand", null=True, db_column='CreateCommand_id', blank=True) # Field name made lowercase.
    symbologytext = models.TextField(blank=True)
    the_geom = models.PointField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgislandmarkpoint'
        app_label='djangoproject'

#Coopgismaterial had 0 rows.
class Coopgismaterial(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    conductorindicator = models.BooleanField(db_column='ConductorIndicator') # Field name made lowercase.
    class Meta:
        db_table = u'coopgismaterial'
        app_label='djangoproject'

#Coopgispart had 0 rows.
class Coopgispart(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    number = models.CharField(max_length=250, db_column='Number') # Field name made lowercase.
    discontinuedate = models.DateField(null=True, db_column='DiscontinueDate', blank=True) # Field name made lowercase.
    parteach = models.ForeignKey('Coopgisparteach', related_name="Coopgispart_parteach", db_column='PartEach_id') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgispart'
        app_label='djangoproject'

#Coopgispartcost had 0 rows.
class Coopgispartcost(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    part = models.ForeignKey('Coopgispart', related_name="Coopgispartcost_part", db_column='Part_id') # Field name made lowercase.
    price = models.FloatField(db_column='Price') # Field name made lowercase.
    date = models.DateField(db_column='Date') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    partsupplier = models.ForeignKey('Coopgispartsupplier', related_name="Coopgispartcost_partsupplier", null=True, db_column='PartSupplier_id', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'coopgispartcost'
        app_label='djangoproject'

#Coopgisparteach had 0 rows.
class Coopgisparteach(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgisparteach'
        app_label='djangoproject'

#Coopgispartmap had 0 rows.
class Coopgispartmap(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    part = models.ForeignKey('Coopgispart', related_name="Coopgispartmap_part", db_column='Part_id') # Field name made lowercase.
    compatibleunit_id = models.IntegerField(db_column='CompatibleUnit_id') # Field name made lowercase.
    class Meta:
        db_table = u'coopgispartmap'
        app_label='djangoproject'

#Coopgispartsupplier had 0 rows.
class Coopgispartsupplier(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    class Meta:
        db_table = u'coopgispartsupplier'
        app_label='djangoproject'

#Coopgisstakerquickgenerateline had 0 rows.
class Coopgisstakerquickgenerateline(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    the_geom = models.LineStringField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisstakerquickgenerateline'
        app_label='djangoproject'

#Coopgisstakerquickgeneratepoint had 0 rows.
class Coopgisstakerquickgeneratepoint(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    the_geom = models.PointField(srid=2273, null=True, blank=True)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisstakerquickgeneratepoint'
        app_label='djangoproject'

#Coopgisstate had 0 rows.
class Coopgisstate(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    the_geom = models.PolygonField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgisstate'
        app_label='djangoproject'

#Coopgiszipcode had 0 rows.
class Coopgiszipcode(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    name = models.CharField(max_length=250, db_column='Name') # Field name made lowercase.
    description = models.TextField(db_column='Description') # Field name made lowercase.
    city = models.ForeignKey('Coopgiscity', related_name="Coopgiszipcode_city", db_column='City_id') # Field name made lowercase.
    the_geom = models.PolygonField(srid=2273)
    objects = models.GeoManager()
    class Meta:
        db_table = u'coopgiszipcode'
        app_label='djangoproject'

#GeographyColumns had 0 rows.
class GeographyColumns(models.Model):
    using = 'gis'
    f_table_catalog = models.TextField(primary_key=True) # This field type is a guess.
    f_table_schema = models.TextField(blank=True) # This field type is a guess.
    f_table_name = models.TextField(blank=True) # This field type is a guess.
    f_geography_column = models.TextField(blank=True) # This field type is a guess.
    coord_dimension = models.IntegerField(null=True, blank=True)
    srid = models.IntegerField(null=True, blank=True)
    type = models.TextField(blank=True)
    class Meta:
        db_table = u'geography_columns'
        app_label='djangoproject'

#Substationequipmenttest had 0 rows.
class Substationequipmenttest(models.Model):
    using = 'gis'
    id = models.IntegerField(primary_key=True)
    substationequipment_id = models.IntegerField(db_column='SubstationEquipment_id') # Field name made lowercase.
    passindicator = models.NullBooleanField(null=True, db_column='PassIndicator', blank=True) # Field name made lowercase.
    description = models.TextField(db_column='Description', blank=True) # Field name made lowercase.
    datetime = models.DateTimeField(db_column='DateTime') # Field name made lowercase.
    residesonserverindicator = models.NullBooleanField(null=True, db_column='ResidesOnServerIndicator', blank=True) # Field name made lowercase.
    class Meta:
        db_table = u'substationequipmenttest'
        app_label='djangoproject'
